Title: [140715] trunk/LayoutTests
Revision
140715
Author
ad...@chromium.org
Date
2013-01-24 13:16:32 -0800 (Thu, 24 Jan 2013)

Log Message

Layout Test fast/dom/HTMLTemplateElement/ownerDocument-adoptNode.html is flaky
https://bugs.webkit.org/show_bug.cgi?id=106612

Reviewed by Eric Seidel.

* fast/dom/HTMLTemplateElement/ownerDocument-adoptNode.html: Wait for
the iframe's onload event before running the test.
* platform/chromium/TestExpectations: Remove flaky expectation.
* platform/efl/TestExpectations: ditto
* platform/gtk/TestExpectations: ditto

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (140714 => 140715)


--- trunk/LayoutTests/ChangeLog	2013-01-24 21:09:29 UTC (rev 140714)
+++ trunk/LayoutTests/ChangeLog	2013-01-24 21:16:32 UTC (rev 140715)
@@ -1,3 +1,16 @@
+2013-01-24  Adam Klein  <ad...@chromium.org>
+
+        Layout Test fast/dom/HTMLTemplateElement/ownerDocument-adoptNode.html is flaky
+        https://bugs.webkit.org/show_bug.cgi?id=106612
+
+        Reviewed by Eric Seidel.
+
+        * fast/dom/HTMLTemplateElement/ownerDocument-adoptNode.html: Wait for
+        the iframe's onload event before running the test.
+        * platform/chromium/TestExpectations: Remove flaky expectation.
+        * platform/efl/TestExpectations: ditto
+        * platform/gtk/TestExpectations: ditto
+
 2013-01-24  Tony Chang  <t...@chromium.org>
 
         Remove document as a parameter from a few internals methods

Modified: trunk/LayoutTests/fast/dom/HTMLTemplateElement/ownerDocument-adoptNode.html (140714 => 140715)


--- trunk/LayoutTests/fast/dom/HTMLTemplateElement/ownerDocument-adoptNode.html	2013-01-24 21:09:29 UTC (rev 140714)
+++ trunk/LayoutTests/fast/dom/HTMLTemplateElement/ownerDocument-adoptNode.html	2013-01-24 21:16:32 UTC (rev 140715)
@@ -1,22 +1,28 @@
 <!DOCTYPE html>
 <body>
 <template><div></div></template>
-<iframe srcdoc="<template><div></div></template>" style="display:none"></iframe>
 <script src=""
 <script>
 description('Adopting a template from another document should also switch the template content document');
+jsTestIsAsync = true;
 
-var template = document.querySelector('template');
-var frameTemplate = frames[0].document.querySelector('template');
+var template;
+var frameTemplate;
+function test() {
+    template = document.querySelector('template');
+    frameTemplate = frames[0].document.querySelector('template');
 
-debug('Before adoption:');
-shouldNotBe('template.ownerDocument', 'frameTemplate.ownerDocument');
-shouldNotBe('template.content.ownerDocument', 'frameTemplate.content.ownerDocument');
-frameTemplate = document.adoptNode(frameTemplate);
-debug('\nAfter adoption:');
-shouldBe('template.ownerDocument', 'frameTemplate.ownerDocument');
-shouldBe('template.content.ownerDocument', 'frameTemplate.content.ownerDocument');
-debug('');
+    debug('Before adoption:');
+    shouldNotBe('template.ownerDocument', 'frameTemplate.ownerDocument');
+    shouldNotBe('template.content.ownerDocument', 'frameTemplate.content.ownerDocument');
+    frameTemplate = document.adoptNode(frameTemplate);
+    debug('\nAfter adoption:');
+    shouldBe('template.ownerDocument', 'frameTemplate.ownerDocument');
+    shouldBe('template.content.ownerDocument', 'frameTemplate.content.ownerDocument');
+    debug('');
+    finishJSTest();
+}
 </script>
 <script src=""
+<iframe srcdoc="<template><div></div></template>" _onload_="test()" style="display:none"></iframe>
 </body>

Modified: trunk/LayoutTests/platform/chromium/TestExpectations (140714 => 140715)


--- trunk/LayoutTests/platform/chromium/TestExpectations	2013-01-24 21:09:29 UTC (rev 140714)
+++ trunk/LayoutTests/platform/chromium/TestExpectations	2013-01-24 21:16:32 UTC (rev 140715)
@@ -4289,7 +4289,6 @@
 webkit.org/b/103955 fast/repaint/selection-rl.html [ ImageOnlyFailure ]
 webkit.org/b/103955 fast/repaint/caret-with-transformation.html [ Missing ]
 webkit.org/b/106609 [ Win ] animations/fill-mode-iteration-count-non-integer.html [ Failure ]
-webkit.org/b/106612 [ Win ] fast/dom/HTMLTemplateElement/ownerDocument-adoptNode.html [ Failure Pass ]
 
 webkit.org/b/106689 canvas/philip/tests/2d.gradient.interpolate.overlap2.html [ Failure ]
 webkit.org/b/106689 canvas/philip/tests/2d.gradient.linear.transform.1.html [ Failure ]

Modified: trunk/LayoutTests/platform/efl/TestExpectations (140714 => 140715)


--- trunk/LayoutTests/platform/efl/TestExpectations	2013-01-24 21:09:29 UTC (rev 140714)
+++ trunk/LayoutTests/platform/efl/TestExpectations	2013-01-24 21:16:32 UTC (rev 140715)
@@ -1775,9 +1775,6 @@
 webkit.org/b/106015 fast/css-generated-content/pseudo-animation.html [ Failure ]
 webkit.org/b/106015 fast/css-generated-content/pseudo-transition.html [ Failure ]
 
-# New test introduced in r138756 is failing.
-webkit.org/b/106086 fast/dom/HTMLTemplateElement/ownerDocument-adoptNode.html [ Failure ]
-
 # Fail after r139145 on MAC, EFL, QT, GTK.
 webkit.org/b/106415 fast/workers/worker-close-more.html [ Pass Failure ]
 

Modified: trunk/LayoutTests/platform/gtk/TestExpectations (140714 => 140715)


--- trunk/LayoutTests/platform/gtk/TestExpectations	2013-01-24 21:09:29 UTC (rev 140714)
+++ trunk/LayoutTests/platform/gtk/TestExpectations	2013-01-24 21:16:32 UTC (rev 140715)
@@ -637,8 +637,6 @@
 # End of Flaky tests
 #////////////////////////////////////////////////////////////////////////////////////////
 
-webkit.org/b/106086 fast/dom/HTMLTemplateElement/ownerDocument-adoptNode.html [ Failure Pass ]
-
 #////////////////////////////////////////////////////////////////////////////////////////
 # Slow tests
 #////////////////////////////////////////////////////////////////////////////////////////
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to