mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Fix the test for bug 1173787 to work even when the filename contains a ':' (e.g. on Windows) so we can reopen the CLOSED TREE
This commit is contained in:
parent
9b6c1cf3ca
commit
1ff7f050a6
@ -3,6 +3,9 @@ try {
|
||||
} catch (e) {
|
||||
assertEq(e.columnNumber, 5);
|
||||
// Filter the filename from the stack, since we have no clue what
|
||||
// to expect there.
|
||||
assertEq(e.stack.replace(/[^:]*/, ""), ":2:5\n");
|
||||
// to expect there. Search for ':' from the end, because the file
|
||||
// path may contain ':' in it.
|
||||
var lastColon = e.stack.lastIndexOf(':');
|
||||
var afterPath = e.stack.lastIndexOf(':', lastColon - 1);
|
||||
assertEq(e.stack.substring(afterPath), ":2:5\n");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user