Skip to content

Commit

Permalink
enable history interface tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrewster committed Jun 19, 2016
1 parent 2cea418 commit cdf56c8
Show file tree
Hide file tree
Showing 54 changed files with 285 additions and 2 deletions.
1 change: 1 addition & 0 deletions tests/wpt/metadata/FileAPI/blob/Blob-XHR-revoke.html.ini
Expand Up @@ -4,3 +4,4 @@
[Revoking blob URL used with XMLHttpRequest]
expected: TIMEOUT
bug: https://github.com/servo/servo/issues/10539

Expand Up @@ -2,3 +2,4 @@
type: testharness
[Do only fully active documents count for session history?]
expected: FAIL

@@ -0,0 +1,3 @@
[001.html]
type: testharness
expected: TIMEOUT
@@ -0,0 +1,3 @@
[002.html]
type: testharness
expected: TIMEOUT
@@ -0,0 +1,3 @@
[004.html]
type: testharness
expected: TIMEOUT
@@ -0,0 +1,6 @@
[005.html]
type: testharness
expected: TIMEOUT
[history.pushState support is needed for this testcase]
expected: FAIL

@@ -0,0 +1,14 @@
[006.html]
type: testharness
[history.state should initially be null]
expected: FAIL

[history.state should still be null onload]
expected: FAIL

[history.state should still be null after onload]
expected: FAIL

[writing to history.state should be silently ignored and not throw an error]
expected: FAIL

@@ -0,0 +1,12 @@
[007.html]
type: testharness
expected: TIMEOUT
[history.state should initially be null]
expected: FAIL

[history.pushState support is needed for this testcase]
expected: FAIL

[history.state should reflect pushed state]
expected: FAIL

@@ -0,0 +1,3 @@
[008.html]
type: testharness
expected: TIMEOUT
@@ -0,0 +1,3 @@
[009.html]
type: testharness
expected: TIMEOUT
@@ -0,0 +1,3 @@
[010.html]
type: testharness
expected: TIMEOUT
@@ -0,0 +1,11 @@
[011.html]
type: testharness
[pushState should be able to set the location state]
expected: FAIL

[pushed location should be reflected immediately]
expected: FAIL

[pushed location should be retained after the page has loaded]
expected: FAIL

@@ -0,0 +1,11 @@
[012.html]
type: testharness
[replaceState should be able to set the location state]
expected: FAIL

[replaced location should be reflected immediately]
expected: FAIL

[replaced location should be retained after the page has loaded]
expected: FAIL

This file was deleted.

@@ -0,0 +1,5 @@
[combination_history_001.html]
type: testharness
[Combine pushState and replaceSate methods]
expected: FAIL

@@ -0,0 +1,5 @@
[combination_history_002.html]
type: testharness
[After calling of pushState method, check length]
expected: FAIL

@@ -0,0 +1,5 @@
[combination_history_003.html]
type: testharness
[After calling of pushState and replaceState methods, check length]
expected: FAIL

@@ -0,0 +1,5 @@
[combination_history_004.html]
type: testharness
[After calling of back method, check length]
expected: FAIL

@@ -0,0 +1,5 @@
[combination_history_005.html]
type: testharness
[After calling of forward method, check length]
expected: FAIL

@@ -0,0 +1,5 @@
[combination_history_006.html]
type: testharness
[After calling of go method, check length]
expected: FAIL

@@ -0,0 +1,5 @@
[combination_history_007.html]
type: testharness
[After calling of back and pushState method, check length]
expected: FAIL

@@ -0,0 +1,5 @@
[history_back.html]
type: testharness
[history back]
expected: FAIL

@@ -0,0 +1,5 @@
[history_back_1.html]
type: testharness
[history.back() with session history]
expected: FAIL

@@ -0,0 +1,5 @@
[history_forward.html]
type: testharness
[history forward]
expected: FAIL

@@ -0,0 +1,5 @@
[history_forward_1.html]
type: testharness
[history.forward() with session history]
expected: FAIL

@@ -0,0 +1,5 @@
[history_go_minus.html]
type: testharness
[history go minus]
expected: FAIL

@@ -0,0 +1,5 @@
[history_go_no_argument.html]
type: testharness
[history.go()]
expected: FAIL

@@ -0,0 +1,5 @@
[history_go_plus.html]
type: testharness
[history go plus]
expected: FAIL

@@ -0,0 +1,5 @@
[history_go_undefined.html]
type: testharness
[history.forward() with session history]
expected: FAIL

@@ -0,0 +1,5 @@
[history_go_zero.html]
type: testharness
[history.go(0)]
expected: FAIL

@@ -0,0 +1,5 @@
[history_pushstate.html]
type: testharness
[history pushState]
expected: FAIL

@@ -0,0 +1,5 @@
[history_pushstate_err.html]
type: testharness
[history pushState SECURITY_ERR]
expected: FAIL

@@ -0,0 +1,5 @@
[history_pushstate_nooptionalparam.html]
type: testharness
[history pushState NoOptionalParam]
expected: FAIL

@@ -0,0 +1,5 @@
[history_replacestate.html]
type: testharness
[history replaceState]
expected: FAIL

@@ -0,0 +1,5 @@
[history_replacestate_err.html]
type: testharness
[history replaceState SECURITY_ERR]
expected: FAIL

@@ -0,0 +1,5 @@
[history_replacestate_nooptionalparam.html]
type: testharness
[history replaceStateNoOptionalParam]
expected: FAIL

@@ -0,0 +1,5 @@
[history_state.html]
type: testharness
[history state]
expected: FAIL

@@ -0,0 +1,24 @@
[001.html]
type: testharness
expected: TIMEOUT
[Session history length on initial load]
expected: NOTRUN

[Session history length on adding new iframe]
expected: NOTRUN

[Navigating second iframe]
expected: NOTRUN

[Traversing history back (1)]
expected: NOTRUN

[Navigating first iframe]
expected: NOTRUN

[Traversing history back (2)]
expected: NOTRUN

[Traversing history forward]
expected: NOTRUN

@@ -0,0 +1,12 @@
[002.html]
type: testharness
expected: TIMEOUT
[Session history length on initial load]
expected: NOTRUN

[Session history length on adding new iframe]
expected: NOTRUN

[Navigating second iframe]
expected: NOTRUN

@@ -0,0 +1,5 @@
[traverse_the_session_history_unload_prompt_1.html]
type: testharness
[Traversing the history, unload event is fired on doucment]
expected: FAIL

@@ -0,0 +1,5 @@
[traverse_the_history_1.html]
type: testharness
[Multiple history traversals from the same task]
expected: FAIL

@@ -0,0 +1,5 @@
[traverse_the_history_2.html]
type: testharness
[Multiple history traversals, last would be aborted]
expected: FAIL

@@ -0,0 +1,5 @@
[traverse_the_history_3.html]
type: testharness
[Multiple history traversals, last would be aborted]
expected: FAIL

@@ -0,0 +1,5 @@
[traverse_the_history_4.html]
type: testharness
[Multiple history traversals, last would be aborted]
expected: FAIL

@@ -0,0 +1,5 @@
[traverse_the_history_5.html]
type: testharness
[Multiple history traversals, last would be aborted]
expected: FAIL

@@ -0,0 +1,5 @@
[traverse_the_history_unload_1.html]
type: testharness
[Traversing the history, unload event is fired on doucment]
expected: FAIL

@@ -0,0 +1,5 @@
[traverse_the_history_write_after_load_1.html]
type: testharness
[Traverse the history after document.write after the load event]
expected: FAIL

@@ -0,0 +1,5 @@
[traverse_the_history_write_after_load_2.html]
type: testharness
[Traverse the history back and forward when a history entry is written after the load event]
expected: FAIL

@@ -0,0 +1,5 @@
[traverse_the_history_write_onload_1.html]
type: testharness
[Traverse the history when a history entry is written in the load event]
expected: FAIL

@@ -0,0 +1,5 @@
[traverse_the_history_write_onload_2.html]
type: testharness
[Traverse the history back and forward when a history entry is written in the load event]
expected: FAIL

1 change: 1 addition & 0 deletions tests/wpt/metadata/html/dom/interfaces.html.ini
Expand Up @@ -9575,3 +9575,4 @@

[HTMLInputElement interface: createInput("button") must inherit property "useMap" with the proper type (57)]
expected: FAIL

Expand Up @@ -2,5 +2,7 @@
type: testharness
[Check the frame heriarchy 1]
expected: FAIL

[Check the frame heriarchy 2]
expected: FAIL

@@ -1,6 +1,5 @@
[tex-image-and-sub-image-2d-with-array-buffer-view.html]
type: testharness

[WebGL test #0: at (0, 0) expected: 0,255,0,255 was 255,0,0,255]
expected: FAIL

Expand Down Expand Up @@ -105,3 +104,4 @@

[WebGL test #52: successfullyParsed should be true. Was false.]
expected: FAIL

Expand Up @@ -353,3 +353,4 @@

[WebGL test #254: getError expected: NO_ERROR. Was INVALID_ENUM : Should be no errors.]
expected: FAIL

0 comments on commit cdf56c8

Please sign in to comment.