[common][webmessaging][fix issue] 39/120739/1
authormengli.zhang <mengli.zhang@samsung.com>
Fri, 24 Mar 2017 15:39:44 +0000 (11:39 -0400)
committermengli.zhang <mengli.zhang@samsung.com>
Fri, 24 Mar 2017 15:40:00 +0000 (11:40 -0400)
Change-Id: Ie8a8c025c7c2030abc413475067638ca13c4c61c
Signed-off-by: mengli.zhang <mengli.zhang@samsung.com>
common/tct-webmessaging-w3c-tests/webmessaging/w3c/with-ports/023.html

index 894d38b6b84ce9f5e3b3278971f71fe592802fa3..2742f92c144e36bdba54b151c659f20acee9e07b 100755 (executable)
@@ -4,13 +4,9 @@
 <script src="../../../resources/testharnessreport.js"></script>
 <div id=log></div>
 <script>
-async_test(function(t) {
+test(function() {
   assert_throws(new TypeError(), function() {
     postMessage('', '*', null);
   });
-  onmessage = t.step_func(function(e) {
-    assert_array_equals(e.ports, []);
-    this.done();
-  });
 });
-</script>
\ No newline at end of file
+</script>