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

Unified Diff: LayoutTests/fast/history/state-object-few-arguements-exception-expected.txt

Issue 1007113002: The history.pushState/replaceState should check for minimum arity exception. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 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/history/state-object-few-arguements-exception-expected.txt
diff --git a/LayoutTests/fast/history/state-object-few-arguements-exception-expected.txt b/LayoutTests/fast/history/state-object-few-arguements-exception-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..3ca4c1ee3b836fb79576c2a552e18f51ae5c42e7
--- /dev/null
+++ b/LayoutTests/fast/history/state-object-few-arguements-exception-expected.txt
@@ -0,0 +1,17 @@
+This test makes sure that calls to pushState() and replaceState() with less than 2 arguments fail as expected.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS successfullyParsed is true
+
+TEST COMPLETE
+PASS history.pushState() threw exception TypeError: Failed to execute 'pushState' on 'History': Not enough arguments to History.pushState..
+PASS history.pushState(null) threw exception TypeError: Failed to execute 'pushState' on 'History': Not enough arguments to History.pushState..
+PASS history.pushState(null, null) did not throw exception.
+PASS history.pushState(null, null, null) did not throw exception.
+PASS history.replaceState() threw exception TypeError: Failed to execute 'replaceState' on 'History': Not enough arguments to History.replaceState..
+PASS history.replaceState(null) threw exception TypeError: Failed to execute 'replaceState' on 'History': Not enough arguments to History.replaceState..
+PASS history.replaceState(null, null) did not throw exception.
+PASS history.replaceState(null, null, null) did not throw exception.
+

Powered by Google App Engine
This is Rietveld 408576698