From: lin qunfang Date: Mon, 14 May 2018 22:02:47 +0000 (+0800) Subject: [common][webmessaging][DPTTIZEN-3040, change 4 tcs due to upstream change] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=477b524ccdc9af7780e5a1fbe5993ee5d4b31822;p=test%2Ftct%2Fweb%2Fapi.git [common][webmessaging][DPTTIZEN-3040, change 4 tcs due to upstream change] Change-Id: If05f1ce2d7daf986d7d65a618975993d074271f4 Signed-off-by: lin qunfang --- diff --git a/common/tct-webmessaging-w3c-tests/webmessaging/w3c/Channel_postMessage_ports_readonly_array.htm b/common/tct-webmessaging-w3c-tests/webmessaging/w3c/Channel_postMessage_ports_readonly_array.htm index 49e76daec..8bb35f5b7 100755 --- a/common/tct-webmessaging-w3c-tests/webmessaging/w3c/Channel_postMessage_ports_readonly_array.htm +++ b/common/tct-webmessaging-w3c-tests/webmessaging/w3c/Channel_postMessage_ports_readonly_array.htm @@ -27,8 +27,9 @@ function TestMessageEvent(evt) { var channel3 = new MessageChannel(); - evt.ports.push(channel3.port1); - evt.ports.push(channel3.port1); + assert_throws(new TypeError(), () => { + evt.ports.push(channel3.port1); + }, "ports is a frozen object"); assert_equals(evt.ports.length, 1, "ports is a read only array with length == 1."); t.done(); diff --git a/common/tct-webmessaging-w3c-tests/webmessaging/w3c/with-ports/027.html b/common/tct-webmessaging-w3c-tests/webmessaging/w3c/with-ports/027.html index 72044db25..ec2210033 100755 --- a/common/tct-webmessaging-w3c-tests/webmessaging/w3c/with-ports/027.html +++ b/common/tct-webmessaging-w3c-tests/webmessaging/w3c/with-ports/027.html @@ -6,10 +6,7 @@ diff --git a/common/tct-webmessaging-w3c-tests/webmessaging/webmessaging_MessageEvent_ports_readonly.html b/common/tct-webmessaging-w3c-tests/webmessaging/webmessaging_MessageEvent_ports_readonly.html index c3ce6b9e2..dc50cc24e 100755 --- a/common/tct-webmessaging-w3c-tests/webmessaging/webmessaging_MessageEvent_ports_readonly.html +++ b/common/tct-webmessaging-w3c-tests/webmessaging/webmessaging_MessageEvent_ports_readonly.html @@ -48,7 +48,7 @@ Authors: var msgevent = new MessageEvent("hello world"); var obj = new function () { this.name = "test" }; msgevent.ports = obj; - assert_equals(msgevent.ports, null); + assert_equals(msgevent.ports, []); }, document.title );