2 "This test checks that line numbers are correctly reported for both inline scripts and inline event handlers."
5 function getLineFromError(e
)
13 // ErrorName: ErrorDescription at FileName:LineNumber:ColumnNumber
14 parts
= e
.stack
.split(":");
15 return parts
[parts
.length
- 2];
21 function assertErrorOnLine(error
, expectedLine
)
23 shouldBe(stringify(getLineFromError(error
)), stringify(expectedLine
));