}, 'pushState must not be able to use a DOM node as data');
test(function () {
try { a.b = c; } catch(errdata) {
- assert_throws( 'DATA_CLONE_ERR', function () {
- history.pushState({dummy:errdata},'');
- } );
+ history.pushState({dummy:errdata},'');
+ assert_equals(ReferenceError.prototype, Object.getPrototypeOf(history.state.dummy));
}
- }, 'pushState must not be able to use an error object as data');
+ }, 'pushState must be able to use an error object as data');
test(function () {
assert_throws( 'DATA_CLONE_ERR', function () {
iframe.contentWindow.history.pushState(document,'');
}, 'replaceState must not be able to use a DOM node as data');
test(function () {
try { a.b = c; } catch(errdata) {
- assert_throws( 'DATA_CLONE_ERR', function () {
- history.replaceState({dummy:errdata},'');
- } );
+ history.replaceState({dummy:errdata},'');
+ assert_equals(ReferenceError.prototype, Object.getPrototypeOf(history.state.dummy));
}
- }, 'replaceState must not be able to use an error object as data');
+ }, 'replaceState must be able to use an error object as data');
test(function () {
assert_throws( 'DATA_CLONE_ERR', function () {
iframe.contentWindow.history.replaceState(document,'');
</spec>
</specs>
</testcase>
- <testcase purpose="pushState must not be able to use an error object as data" type="compliance" status="approved" component="W3C_HTML5 APIs/Communication/HTML5 The session history of browsing contexts (Partial)" execution_type="auto" priority="P2" id="history_pushState_not_able_to_use_error_object_as_data">
+ <testcase purpose="pushState must be able to use an error object as data" type="compliance" status="approved" component="W3C_HTML5 APIs/Communication/HTML5 The session history of browsing contexts (Partial)" execution_type="auto" priority="P2" id="history_pushState_able_to_use_error_object_as_data">
<description>
<test_script_entry>http://127.0.0.1:8080/opt/tct-sessionhistory-html5-tests/sessionhistory/w3c/001.html?total_num=40&locator_key=id&value=27</test_script_entry>
</description>
</spec>
</specs>
</testcase>
- <testcase purpose="replaceState must not be able to use an error object as data" type="compliance" status="approved" component="W3C_HTML5 APIs/Communication/HTML5 The session history of browsing contexts (Partial)" execution_type="auto" priority="P2" id="history_replaceState_arguments_with_a_error_object">
+ <testcase purpose="replaceState must be able to use an error object as data" type="compliance" status="approved" component="W3C_HTML5 APIs/Communication/HTML5 The session history of browsing contexts (Partial)" execution_type="auto" priority="P2" id="history_replaceState_arguments_with_a_error_object">
<description>
<test_script_entry>http://127.0.0.1:8080/opt/tct-sessionhistory-html5-tests/sessionhistory/w3c/002.html?total_num=38&locator_key=id&value=25</test_script_entry>
</description>
</spec>
</specs>
</testcase>
- <testcase purpose="pushState must not be able to use an error object as data" type="compliance" status="approved" component="W3C_HTML5 APIs/Communication/HTML5 The session history of browsing contexts (Partial)" execution_type="auto" priority="P2" id="history_pushState_not_able_to_use_error_object_as_data">
+ <testcase purpose="pushState must be able to use an error object as data" type="compliance" status="approved" component="W3C_HTML5 APIs/Communication/HTML5 The session history of browsing contexts (Partial)" execution_type="auto" priority="P2" id="history_pushState_able_to_use_error_object_as_data">
<description>
<test_script_entry>http://127.0.0.1:8080/opt/tct-sessionhistory-html5-tests/sessionhistory/w3c/001.html?total_num=40&locator_key=id&value=27</test_script_entry>
</description>
</spec>
</specs>
</testcase>
- <testcase purpose="replaceState must not be able to use an error object as data" type="compliance" status="approved" component="W3C_HTML5 APIs/Communication/HTML5 The session history of browsing contexts (Partial)" execution_type="auto" priority="P2" id="history_replaceState_arguments_with_a_error_object">
+ <testcase purpose="replaceState must be able to use an error object as data" type="compliance" status="approved" component="W3C_HTML5 APIs/Communication/HTML5 The session history of browsing contexts (Partial)" execution_type="auto" priority="P2" id="history_replaceState_arguments_with_a_error_object">
<description>
<test_script_entry>http://127.0.0.1:8080/opt/tct-sessionhistory-html5-tests/sessionhistory/w3c/002.html?total_num=38&locator_key=id&value=25</test_script_entry>
</description>
</spec>
</specs>
</testcase>
- <testcase purpose="pushState must not be able to use an error object as data" type="compliance" status="approved" component="W3C_HTML5 APIs/Communication/HTML5 The session history of browsing contexts (Partial)" execution_type="auto" priority="P2" id="history_pushState_not_able_to_use_error_object_as_data">
+ <testcase purpose="pushState must be able to use an error object as data" type="compliance" status="approved" component="W3C_HTML5 APIs/Communication/HTML5 The session history of browsing contexts (Partial)" execution_type="auto" priority="P2" id="history_pushState_able_to_use_error_object_as_data">
<description>
<test_script_entry>http://127.0.0.1:8080/opt/tct-sessionhistory-html5-tests/sessionhistory/w3c/001.html?total_num=40&locator_key=id&value=27</test_script_entry>
</description>
</spec>
</specs>
</testcase>
- <testcase purpose="replaceState must not be able to use an error object as data" type="compliance" status="approved" component="W3C_HTML5 APIs/Communication/HTML5 The session history of browsing contexts (Partial)" execution_type="auto" priority="P2" id="history_replaceState_arguments_with_a_error_object">
+ <testcase purpose="replaceState must be able to use an error object as data" type="compliance" status="approved" component="W3C_HTML5 APIs/Communication/HTML5 The session history of browsing contexts (Partial)" execution_type="auto" priority="P2" id="history_replaceState_arguments_with_a_error_object">
<description>
<test_script_entry>http://127.0.0.1:8080/opt/tct-sessionhistory-html5-tests/sessionhistory/w3c/002.html?total_num=38&locator_key=id&value=25</test_script_entry>
</description>
<test_script_entry>/opt/tct-sessionhistory-html5-tests/sessionhistory/w3c/001.html?total_num=40&locator_key=id&value=26</test_script_entry>
</description>
</testcase>
- <testcase component="W3C_HTML5 APIs/Communication/HTML5 The session history of browsing contexts (Partial)" execution_type="auto" id="history_pushState_not_able_to_use_error_object_as_data" priority="P2" purpose="pushState must not be able to use an error object as data">
+ <testcase component="W3C_HTML5 APIs/Communication/HTML5 The session history of browsing contexts (Partial)" execution_type="auto" id="history_pushState_able_to_use_error_object_as_data" priority="P2" purpose="pushState must be able to use an error object as data">
<description>
<test_script_entry>/opt/tct-sessionhistory-html5-tests/sessionhistory/w3c/001.html?total_num=40&locator_key=id&value=27</test_script_entry>
</description>
<test_script_entry>/opt/tct-sessionhistory-html5-tests/sessionhistory/w3c/002.html?total_num=38&locator_key=id&value=24</test_script_entry>
</description>
</testcase>
- <testcase component="W3C_HTML5 APIs/Communication/HTML5 The session history of browsing contexts (Partial)" execution_type="auto" id="history_replaceState_arguments_with_a_error_object" priority="P2" purpose="replaceState must not be able to use an error object as data">
+ <testcase component="W3C_HTML5 APIs/Communication/HTML5 The session history of browsing contexts (Partial)" execution_type="auto" id="history_replaceState_arguments_with_a_error_object" priority="P2" purpose="replaceState must be able to use an error object as data">
<description>
<test_script_entry>/opt/tct-sessionhistory-html5-tests/sessionhistory/w3c/002.html?total_num=38&locator_key=id&value=25</test_script_entry>
</description>
<test_script_entry>/opt/tct-sessionhistory-html5-tests/sessionhistory/w3c/001.html?total_num=40&locator_key=id&value=26</test_script_entry>
</description>
</testcase>
- <testcase component="W3C_HTML5 APIs/Communication/HTML5 The session history of browsing contexts (Partial)" execution_type="auto" id="history_pushState_not_able_to_use_error_object_as_data" priority="P2" purpose="pushState must not be able to use an error object as data">
+ <testcase component="W3C_HTML5 APIs/Communication/HTML5 The session history of browsing contexts (Partial)" execution_type="auto" id="history_pushState_able_to_use_error_object_as_data" priority="P2" purpose="pushState must be able to use an error object as data">
<description>
<test_script_entry>/opt/tct-sessionhistory-html5-tests/sessionhistory/w3c/001.html?total_num=40&locator_key=id&value=27</test_script_entry>
</description>
<test_script_entry>/opt/tct-sessionhistory-html5-tests/sessionhistory/w3c/002.html?total_num=38&locator_key=id&value=24</test_script_entry>
</description>
</testcase>
- <testcase component="W3C_HTML5 APIs/Communication/HTML5 The session history of browsing contexts (Partial)" execution_type="auto" id="history_replaceState_arguments_with_a_error_object" priority="P2" purpose="replaceState must not be able to use an error object as data">
+ <testcase component="W3C_HTML5 APIs/Communication/HTML5 The session history of browsing contexts (Partial)" execution_type="auto" id="history_replaceState_arguments_with_a_error_object" priority="P2" purpose="replaceState must be able to use an error object as data">
<description>
<test_script_entry>/opt/tct-sessionhistory-html5-tests/sessionhistory/w3c/002.html?total_num=38&locator_key=id&value=25</test_script_entry>
</description>
<test_script_entry>/opt/tct-sessionhistory-html5-tests/sessionhistory/w3c/001.html?total_num=40&locator_key=id&value=26</test_script_entry>
</description>
</testcase>
- <testcase component="W3C_HTML5 APIs/Communication/HTML5 The session history of browsing contexts (Partial)" execution_type="auto" id="history_pushState_not_able_to_use_error_object_as_data" priority="P2" purpose="pushState must not be able to use an error object as data">
+ <testcase component="W3C_HTML5 APIs/Communication/HTML5 The session history of browsing contexts (Partial)" execution_type="auto" id="history_pushState_able_to_use_error_object_as_data" priority="P2" purpose="pushState must be able to use an error object as data">
<description>
<test_script_entry>/opt/tct-sessionhistory-html5-tests/sessionhistory/w3c/001.html?total_num=40&locator_key=id&value=27</test_script_entry>
</description>
<test_script_entry>/opt/tct-sessionhistory-html5-tests/sessionhistory/w3c/002.html?total_num=38&locator_key=id&value=24</test_script_entry>
</description>
</testcase>
- <testcase component="W3C_HTML5 APIs/Communication/HTML5 The session history of browsing contexts (Partial)" execution_type="auto" id="history_replaceState_arguments_with_a_error_object" priority="P2" purpose="replaceState must not be able to use an error object as data">
+ <testcase component="W3C_HTML5 APIs/Communication/HTML5 The session history of browsing contexts (Partial)" execution_type="auto" id="history_replaceState_arguments_with_a_error_object" priority="P2" purpose="replaceState must not able to use an error object as data">
<description>
<test_script_entry>/opt/tct-sessionhistory-html5-tests/sessionhistory/w3c/002.html?total_num=38&locator_key=id&value=25</test_script_entry>
</description>