|
LayoutTests/resources/js-test.js onerror tweak.
Previously, the onerror handler set up by js-test.js in LayoutTests did
not call finishJSTest(). If an error was thrown in an async test,
testRunner.notifyDone() was never called, causing a timeout.
This change makes async tests terminate immediately when an unexpected
error occurs, making it easier/faster to debug async tests.
Tests that expect unhandled errors to be thrown (usually signaled by calling
shouldHaveHadError()) must now call expectError() before the errors will
be thrown. This change updates existing tests that use
shouldHaveHadErrors().
BUG= 164933
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=161860
Total comments: 3
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+137 lines, -55 lines) |
Patch |
 |
M |
LayoutTests/fast/dom/Geolocation/callback-exception-expected.txt
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/dom/Geolocation/script-tests/callback-exception.js
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/dom/shadow/tab-order-iframe-and-shadow-expected.txt
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/harness/error-in-async-test.html
|
View
|
1
2
3
4
5
|
1 chunk |
+20 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/harness/error-in-async-test-expected.txt
|
View
|
1
2
3
4
5
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/harness/expected-error-in-async-test.html
|
View
|
1
2
3
4
5
|
1 chunk |
+26 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/harness/expected-error-in-async-test-expected.txt
|
View
|
1
2
3
4
5
|
1 chunk |
+13 lines, -0 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/js/const-expected.txt
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/js/i18n-bindings-locale-expected.txt
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/js/kde/garbage-n.html
|
View
|
1
2
3
|
1 chunk |
+3 lines, -7 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/js/kde/script-tests/TEMPLATE-n.html
|
View
|
1
2
3
|
1 chunk |
+3 lines, -7 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/js/kde/string-1-n.html
|
View
|
1
2
3
|
1 chunk |
+3 lines, -7 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/js/kde/string-2-n.html
|
View
|
1
2
3
|
1 chunk |
+3 lines, -7 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/parser/entity-end-script-tag.html
|
View
|
1
2
3
|
1 chunk |
+6 lines, -8 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/parser/entity-end-script-tag-expected.txt
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/http/tests/security/contentSecurityPolicy/img-blocked-no-gc-crash-expected.txt
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/resources/js-test.js
|
View
|
1
2
3
4
5
|
4 chunks |
+37 lines, -10 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/storage/indexeddb/exception-in-event-aborts-expected.txt
|
View
|
1
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/storage/indexeddb/resources/exception-in-event-aborts.js
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/svg/dom/SVGViewSpec-expected.txt
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 12 (0 generated)
|