Fix test failure by tolerating different line/column numbers.

This commit is contained in:
Ben Newman
2016-10-07 12:05:55 -04:00
parent 68347cdb76
commit dfd477568f

View File

@@ -329,8 +329,9 @@ selftest.define("compiler plugins - compiler throws", () => {
// XXX This is wrong! The path on disk is packages/local-plugin/plugin.js, but
// at some point we switched to the servePath which is based on the *plugin*'s
// "package" name.
run.matchErr('packages/compilePrintme/plugin.js:5:1: Error in my ' +
'registerCompiler callback!');
run.matchErr(
/packages\/compilePrintme_plugin\.js:\d+:\d+: Error in my registerCompiler callback!/
);
run.expectExit(1);
});