Title: [135871] trunk/LayoutTests
Revision
135871
Author
[email protected]
Date
2012-11-27 09:59:01 -0800 (Tue, 27 Nov 2012)

Log Message

Fix world-reuse test for mac build
https://bugs.webkit.org/show_bug.cgi?id=103385

Patch by Dan Carney <[email protected]> on 2012-11-27
Reviewed by Jochen Eisinger.

Mac and chrome builds have different expectations for where
an isolated world is executed.

* http/tests/security/isolatedWorld/world-reuse.html:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (135870 => 135871)


--- trunk/LayoutTests/ChangeLog	2012-11-27 17:57:53 UTC (rev 135870)
+++ trunk/LayoutTests/ChangeLog	2012-11-27 17:59:01 UTC (rev 135871)
@@ -1,3 +1,15 @@
+2012-11-27  Dan Carney  <[email protected]>
+
+        Fix world-reuse test for mac build
+        https://bugs.webkit.org/show_bug.cgi?id=103385
+
+        Reviewed by Jochen Eisinger.
+
+        Mac and chrome builds have different expectations for where
+        an isolated world is executed. 
+
+        * http/tests/security/isolatedWorld/world-reuse.html:
+
 2012-11-27  Robert Kroeger  <[email protected]>
 
         Unreviewed gardening: updated TestExpectations for crashes in

Modified: trunk/LayoutTests/http/tests/security/isolatedWorld/world-reuse.html (135870 => 135871)


--- trunk/LayoutTests/http/tests/security/isolatedWorld/world-reuse.html	2012-11-27 17:57:53 UTC (rev 135870)
+++ trunk/LayoutTests/http/tests/security/isolatedWorld/world-reuse.html	2012-11-27 17:59:01 UTC (rev 135871)
@@ -33,7 +33,7 @@
 
     // Isolated world executing in frame should be able to to access parent content.
     testRunner.evaluateScriptInIsolatedWorld(1,
-      "parent.document.body.appendChild(parent.document.createTextNode('Expecting true: ' + (parent.frames[0].document == this.document)));" +
+      "parent.document.body.appendChild(parent.document.createTextNode('Expecting true: ' + !!parent.frames[0].document.getElementById('output')));" +
       "parent.document.body.appendChild(parent.document.createElement('br'));");
 
     document.body.appendChild(document.createTextNode('Expecting undefined,undefined: ' + result));
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to