Summary

Harness status: OK

Found 25 tests

Details

ResultTest NameMessage
Passonpopstate in window
Asserts run
Pass
assert_own_property(object "[object Window]", "onpopstate", "window has 'onpopstate' own property")
    at Test.<anonymous> ( /old-tests/submission/Microsoft/history/history_000.htm:29:25)
Passhistory.pushState is present
Asserts run
Pass
assert_inherits(object "[object History]", "pushState", "history inherits property 'pushState'")
    at Test.<anonymous> ( /old-tests/submission/Microsoft/history/history_000.htm:34:25)
Pass
assert_equals(function "function Function() { [native code] }", function "function Function() { [native code] }", "pushState is a function")
    at Test.<anonymous> ( /old-tests/submission/Microsoft/history/history_000.htm:35:25)
Passhistory.replaceState is present
Asserts run
Pass
assert_inherits(object "[object History]", "replaceState", "history inherits property 'replaceState'")
    at Test.<anonymous> ( /old-tests/submission/Microsoft/history/history_000.htm:40:25)
Pass
assert_equals(function "function Function() { [native code] }", function "function Function() { [native code] }", "replaceState is a function")
    at Test.<anonymous> ( /old-tests/submission/Microsoft/history/history_000.htm:41:25)
Passhistory.state is present
Asserts run
Pass
assert_inherits(object "[object History]", "state", "history inherits property 'state'")
    at Test.<anonymous> ( /old-tests/submission/Microsoft/history/history_000.htm:46:25)
Passhistory.state is initialized to null
Asserts run
Pass
assert_equals(null, null, "history.state initialized to null")
    at Test.<anonymous> ( /old-tests/submission/Microsoft/history/history_000.htm:51:25)
Passhistory.pushState increments history.length
Asserts run
Pass
assert_equals(3, 3, "history.length should be incremented by one")
    at Test.<anonymous> ( /old-tests/submission/Microsoft/history/history_000.htm:59:25)
Passhistory.pushState clears forward entries
Asserts run
Pass
assert_equals(6, 6, "Three additional travel entries add to history.length")
    at Test.<anonymous> ( /old-tests/submission/Microsoft/history/history_000.htm:73:25)
Pass
assert_equals(4, 4, "History.length should now only be one more than original value")
    at Test.<anonymous> ( /old-tests/submission/Microsoft/history/history_000.htm:81:29)
Failhistory.pushState accepts a third parameter 'url' and uses it to alter locationFailed to execute 'pushState' on 'History': A history state object with URL 'https://wpt.live/old-tests/submission/Microsoft/history/test-pushstate-url' cannot be created in a document with origin 'https://wpt.live' and URL 'about:blank'.
Error: Failed to execute 'pushState' on 'History': A history state object with URL 'https://wpt.live/old-tests/submission/Microsoft/history/test-pushstate-url' cannot be created in a document with origin 'https://wpt.live' and URL 'about:blank'.
Asserts runNo asserts ran
Failhistory.pushState's url parameter can be an absolute urlFailed to execute 'pushState' on 'History': A history state object with URL 'https://wpt.live/old-tests/submission/Microsoft/history/absolute-page' cannot be created in a document with origin 'https://wpt.live' and URL 'about:blank'.
Error: Failed to execute 'pushState' on 'History': A history state object with URL 'https://wpt.live/old-tests/submission/Microsoft/history/absolute-page' cannot be created in a document with origin 'https://wpt.live' and URL 'about:blank'.
Asserts runNo asserts ran
Failhistory.pushState can modify location object in multiple framesFailed to execute 'pushState' on 'History': A history state object with URL 'https://wpt.live/old-tests/submission/Microsoft/history/multiple-pushstate-url1' cannot be created in a document with origin 'https://wpt.live' and URL 'about:blank'.
Error: Failed to execute 'pushState' on 'History': A history state object with URL 'https://wpt.live/old-tests/submission/Microsoft/history/multiple-pushstate-url1' cannot be created in a document with origin 'https://wpt.live' and URL 'about:blank'.
Asserts runNo asserts ran
Passhistory.pushState throws DOMException with code SECURITY_ERR (18)
Asserts run
Pass
assert_throws_dom("SECURITY_ERR", function "function() { history.pushState(null, null, testurl); }", "Security_Err 18 should be thrown")
    at Test.<anonymous> ( /old-tests/submission/Microsoft/history/history_000.htm:124:25)
Passhistory.pushState throws DATA_CLONE_ERR(25) for bad state parameter
Asserts run
Pass
assert_throws_dom("DATA_CLONE_ERR", function "function() { history.pushState(document.body, null); }", "pushState should throw an exception DATA_CLONE_ERR with code 25")
    at Test.<anonymous> ( /old-tests/submission/Microsoft/history/history_000.htm:131:25)
Passhistory.replaceState does not increment history.length
Asserts run
Pass
assert_equals(4, 4, "history.length should not change")
    at Test.<anonymous> ( /old-tests/submission/Microsoft/history/history_000.htm:139:25)
Passhistory.replaceState does not clear forward entries
Asserts run
Pass
assert_equals(7, 7, "Three additional travel entries add to history.length")
    at Test.<anonymous> ( /old-tests/submission/Microsoft/history/history_000.htm:153:25)
Pass
assert_equals(7, 7, "History.length should still be three more than original value")
    at Test.<anonymous> ( /old-tests/submission/Microsoft/history/history_000.htm:161:29)
Failhistory.replaceState accepts a third parameter 'url' and uses it to alter locationFailed to execute 'replaceState' on 'History': A history state object with URL 'https://wpt.live/old-tests/submission/Microsoft/history/test-replaceState-url' cannot be created in a document with origin 'https://wpt.live' and URL 'about:blank'.
Error: Failed to execute 'replaceState' on 'History': A history state object with URL 'https://wpt.live/old-tests/submission/Microsoft/history/test-replaceState-url' cannot be created in a document with origin 'https://wpt.live' and URL 'about:blank'.
Asserts runNo asserts ran
Failhistory.replaceState's url parameter can be an absolute urlFailed to execute 'replaceState' on 'History': A history state object with URL 'https://wpt.live/old-tests/submission/Microsoft/history/absolute-page' cannot be created in a document with origin 'https://wpt.live' and URL 'about:blank'.
Error: Failed to execute 'replaceState' on 'History': A history state object with URL 'https://wpt.live/old-tests/submission/Microsoft/history/absolute-page' cannot be created in a document with origin 'https://wpt.live' and URL 'about:blank'.
Asserts runNo asserts ran
Failhistory.replaceState can modify location object in multiple framesFailed to execute 'replaceState' on 'History': A history state object with URL 'https://wpt.live/old-tests/submission/Microsoft/history/multiple-replaceState-url1' cannot be created in a document with origin 'https://wpt.live' and URL 'about:blank'.
Error: Failed to execute 'replaceState' on 'History': A history state object with URL 'https://wpt.live/old-tests/submission/Microsoft/history/multiple-replaceState-url1' cannot be created in a document with origin 'https://wpt.live' and URL 'about:blank'.
Asserts runNo asserts ran
Passhistory.replaceState throws DOMException with code SECURITY_ERR (18)
Asserts run
Pass
assert_throws_dom("SECURITY_ERR", function "function() { history.replaceState(null, null, testurl); }", "Security_Err 18 should be thrown")
    at Test.<anonymous> ( /old-tests/submission/Microsoft/history/history_000.htm:204:25)
Passhistory.replaceState throws DATA_CLONE_ERR(25) for bad state parameter
Asserts run
Pass
assert_throws_dom("DATA_CLONE_ERR", function "function() {history.replaceState(document.body, null);}", "replaceState should throw an exception DATA_CLONE_ERR with code 25")
    at Test.<anonymous> ( /old-tests/submission/Microsoft/history/history_000.htm:211:25)
PassPopStateEvent fires on Back navigation
Asserts runNo asserts ran
PassPopStateEvent fires on Forward navigation
Asserts runNo asserts ran
PassPopStateEvent receives state data on Back navigation
Asserts run
Pass
assert_equals("popstate-data", "popstate-data", "State data is passed to the event correctly")
    at Test.<anonymous> ( /old-tests/submission/Microsoft/history/history_000.htm:254:29)
Passhistory.state is set by history.pushState
Asserts run
Pass
assert_equals("pushstate-data", "pushstate-data", "State data is set correctly")
    at Test.<anonymous> ( /old-tests/submission/Microsoft/history/history_000.htm:266:25)
Passhistory.state is set by history.replaceState
Asserts run
Pass
assert_equals("replacestate-data", "replacestate-data", "State data is set correctly")
    at Test.<anonymous> ( /old-tests/submission/Microsoft/history/history_000.htm:274:25)
Passhistory.state changes on navigation
Asserts run
Pass
assert_equals("state-back2", "state-back2", "Verify that history.state is set to a second value")
    at Test.<anonymous> ( /old-tests/submission/Microsoft/history/history_000.htm:284:25)
Pass
assert_equals("state-back1", "state-back1", "Verify that history.state reverted to the first value")
    at Test.<anonymous> ( /old-tests/submission/Microsoft/history/history_000.htm:288:29)