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

Unified Diff: LayoutTests/fast/dom/Geolocation/not-enough-arguments.html

Issue 24203002: Improve generated "Not enough arguments." TypeError exceptions. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: NeedsRebaseline Created 7 years, 3 months 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/not-enough-arguments.html
diff --git a/LayoutTests/fast/dom/Geolocation/not-enough-arguments.html b/LayoutTests/fast/dom/Geolocation/not-enough-arguments.html
index dfda445247084af5a53c907275635d85a6870dde..8cc2dc9babaf1f75024dfe5583b6a95fd16daf2b 100644
--- a/LayoutTests/fast/dom/Geolocation/not-enough-arguments.html
+++ b/LayoutTests/fast/dom/Geolocation/not-enough-arguments.html
@@ -9,7 +9,7 @@ description("Tests how Geolocation handles receiving too few arguments.");
shouldThrow("window.navigator.geolocation.getCurrentPosition()");
shouldThrow("window.navigator.geolocation.watchPosition()");
-shouldThrow("window.navigator.geolocation.clearWatch()");
+shouldThrow("window.navigator.geolocation.clearWatch()", '"TypeError: Failed to execute \'clearWatch\' on \'Geolocation\': 1 argument required, but only 0 present."');
</script>
<script src="../../js/resources/js-test-post.js"></script>
</body>

Powered by Google App Engine
This is Rietveld 408576698