Title: [160418] trunk/LayoutTests
- Revision
- 160418
- Author
- [email protected]
- Date
- 2013-12-11 02:51:06 -0800 (Wed, 11 Dec 2013)
Log Message
Test results of postMessage-clone-port-error.html test are broken
https://bugs.webkit.org/show_bug.cgi?id=125487
Patch by Michal Poteralski <[email protected]> on 2013-12-11
Reviewed by Alexey Proskuryakov.
Improved Layout test checks correctness of value thrown by postMessage:
* fast/dom/Window/postMessage-clone-port-error-expected.txt:
* fast/dom/Window/postMessage-clone-port-error.html:
Modified Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (160417 => 160418)
--- trunk/LayoutTests/ChangeLog 2013-12-11 10:28:21 UTC (rev 160417)
+++ trunk/LayoutTests/ChangeLog 2013-12-11 10:51:06 UTC (rev 160418)
@@ -1,3 +1,15 @@
+2013-12-11 Michal Poteralski <[email protected]>
+
+ Test results of postMessage-clone-port-error.html test are broken
+ https://bugs.webkit.org/show_bug.cgi?id=125487
+
+ Reviewed by Alexey Proskuryakov.
+
+ Improved Layout test checks correctness of value thrown by postMessage:
+
+ * fast/dom/Window/postMessage-clone-port-error-expected.txt:
+ * fast/dom/Window/postMessage-clone-port-error.html:
+
2013-12-11 Mario Sanchez Prada <[email protected]>
Programmatically-inserted children lack accessibility events
Modified: trunk/LayoutTests/fast/dom/Window/postMessage-clone-port-error-expected.txt (160417 => 160418)
--- trunk/LayoutTests/fast/dom/Window/postMessage-clone-port-error-expected.txt 2013-12-11 10:28:21 UTC (rev 160417)
+++ trunk/LayoutTests/fast/dom/Window/postMessage-clone-port-error-expected.txt 2013-12-11 10:51:06 UTC (rev 160418)
@@ -1,5 +1,10 @@
+This test checks if DataCloneError exception is thrown when postMessage's second parameter is the source port or the target port.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS dataCloneErrorWasThrown is true
PASS successfullyParsed is true
TEST COMPLETE
-PASS exName is "DataCloneError"
Modified: trunk/LayoutTests/fast/dom/Window/postMessage-clone-port-error.html (160417 => 160418)
--- trunk/LayoutTests/fast/dom/Window/postMessage-clone-port-error.html 2013-12-11 10:28:21 UTC (rev 160417)
+++ trunk/LayoutTests/fast/dom/Window/postMessage-clone-port-error.html 2013-12-11 10:51:06 UTC (rev 160418)
@@ -1,21 +1,22 @@
-<body _onload_="test();"></body>
+<!DOCTYPE html>
+<html>
+<head>
<script src=""
+</head>
+<body>
<script>
-var exName;
-function test() {
- if (window.testRunner)
- testRunner.dumpAsText();
-
+ description("This test checks if DataCloneError exception is thrown when postMessage's second parameter is the source port or the target port.");
+ var dataCloneErrorWasThrown = false;
var channel = new MessageChannel();
channel.port1.start();
-
try {
channel.port1.postMessage("ports", [channel.port1]);
} catch(ex) {
- exName = ex.name
- shouldBeEqualToString("exName", "DataCloneError");
+ if (ex.name == "DataCloneError")
+ dataCloneErrorWasThrown = true;
}
-}
+ shouldBeTrue("dataCloneErrorWasThrown")
</script>
<script src=""
</body>
+</html>
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes