Account for no newline before test annotations
Previously the license comment would always provide that newline but since that's been removed this change is needed.
This commit is contained in:
parent
2a663555dd
commit
e132d9066d
1 changed files with 6 additions and 3 deletions
|
@ -164,9 +164,12 @@ function loadContent(content) {
|
||||||
var Module = module.constructor;
|
var Module = module.constructor;
|
||||||
var m = new Module();
|
var m = new Module();
|
||||||
m._compile(content, "tmp.js");
|
m._compile(content, "tmp.js");
|
||||||
m.exports.ignore_order = content.indexOf("\n// ignore-order\n") !== -1;
|
m.exports.ignore_order = content.indexOf("\n// ignore-order\n") !== -1 ||
|
||||||
m.exports.exact_check = content.indexOf("\n// exact-check\n") !== -1;
|
content.startsWith("// ignore-order\n");
|
||||||
m.exports.should_fail = content.indexOf("\n// should-fail\n") !== -1;
|
m.exports.exact_check = content.indexOf("\n// exact-check\n") !== -1 ||
|
||||||
|
content.startsWith("// exact-check\n");
|
||||||
|
m.exports.should_fail = content.indexOf("\n// should-fail\n") !== -1 ||
|
||||||
|
content.startsWith("// should-fail\n");
|
||||||
return m.exports;
|
return m.exports;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue