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

Unified Diff: LayoutTests/http/tests/loading/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/http/tests/loading/state-object-few-arguements-exception-expected.txt
diff --git a/LayoutTests/http/tests/loading/state-object-few-arguements-exception-expected.txt b/LayoutTests/http/tests/loading/state-object-few-arguements-exception-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..74b19b7cb29389f11d31b9e8e0388828078c2a9d
--- /dev/null
+++ b/LayoutTests/http/tests/loading/state-object-few-arguements-exception-expected.txt
@@ -0,0 +1,24 @@
+main frame - didStartProvisionalLoadForFrame
+main frame - didCommitLoadForFrame
+main frame - didFinishDocumentLoadForFrame
+main frame - didCommitLoadForFrame
+main frame - didReceiveTitle:
+main frame - didCommitLoadForFrame
+main frame - didReceiveTitle:
+main frame - didCommitLoadForFrame
+main frame - didReceiveTitle:
+main frame - didCommitLoadForFrame
+main frame - didReceiveTitle:
+main frame - didHandleOnloadEventsForFrame
+main frame - didFinishLoadForFrame
+This test makes sure that calls to pushState() and replaceState() with less than 2 arguments fail as expected.
+
+Trying to invoke pushState() with 0 arguments failed with exception TypeError: Failed to execute 'pushState' on 'History': Not enough arguments to History.pushState.
+Trying to invoke pushState() with 1 arguments failed with exception TypeError: Failed to execute 'pushState' on 'History': Not enough arguments to History.pushState.
+Trying to invoke pushState() with 2 arguments should've succeeded.
+Trying to invoke pushState() with 3 arguments should've succeeded.
+Trying to invoke replaceState() with 0 arguments failed with exception TypeError: Failed to execute 'replaceState' on 'History': Not enough arguments to History.replaceState.
+Trying to invoke replaceState() with 1 arguments failed with exception TypeError: Failed to execute 'replaceState' on 'History': Not enough arguments to History.replaceState.
+Trying to invoke replaceState() with 2 arguments should've succeeded.
+Trying to invoke replaceState() with 3 arguments should've succeeded.
+

Powered by Google App Engine
This is Rietveld 408576698