Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Unified Diff: LayoutTests/fast/dom/Geolocation/script-tests/callback-exception.js

Issue 59903016: LayoutTests/resources/js-test.js onerror tweak. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removed setTimeout from js-tests changes. Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/dom/Geolocation/script-tests/callback-exception.js
diff --git a/LayoutTests/fast/dom/Geolocation/script-tests/callback-exception.js b/LayoutTests/fast/dom/Geolocation/script-tests/callback-exception.js
index 1e32b1c4dbaf97fbaad570fbb7cb91c926a4aa2a..629d90c16fc28104f1e415e8d3920209ddad684d 100644
--- a/LayoutTests/fast/dom/Geolocation/script-tests/callback-exception.js
+++ b/LayoutTests/fast/dom/Geolocation/script-tests/callback-exception.js
@@ -22,6 +22,7 @@ navigator.geolocation.getCurrentPosition(function(p) {
// Yield to allow for the error callback to be invoked. The timer
// must be started before the exception is thrown.
window.setTimeout(assertWeGotException, 0);
+ expectError();
throw new Error('Exception in success callback');
}, function(e) {
testFailed('Error callback invoked unexpectedly');

Powered by Google App Engine
This is Rietveld 408576698