Layout Test fast/dom/HTMLTemplateElement/ownerDocument-adoptNode.html is flaky
authoradamk@chromium.org <adamk@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 24 Jan 2013 21:16:32 +0000 (21:16 +0000)
committeradamk@chromium.org <adamk@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 24 Jan 2013 21:16:32 +0000 (21:16 +0000)
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

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140715 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/fast/dom/HTMLTemplateElement/ownerDocument-adoptNode.html
LayoutTests/platform/chromium/TestExpectations
LayoutTests/platform/efl/TestExpectations
LayoutTests/platform/gtk/TestExpectations

index 09d79c4..e041f75 100644 (file)
@@ -1,3 +1,16 @@
+2013-01-24  Adam Klein  <adamk@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  <tony@chromium.org>
 
         Remove document as a parameter from a few internals methods
index 8f4bf2c..a58430b 100644 (file)
@@ -1,22 +1,28 @@
 <!DOCTYPE html>
 <body>
 <template><div></div></template>
-<iframe srcdoc="<template><div></div></template>" style="display:none"></iframe>
 <script src="../../js/resources/js-test-pre.js"></script>
 <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="../../js/resources/js-test-post.js"></script>
+<iframe srcdoc="<template><div></div></template>" onload="test()" style="display:none"></iframe>
 </body>
index a3c8e51..9e8988b 100644 (file)
@@ -4289,7 +4289,6 @@ webkit.org/b/103955 fast/repaint/repaint-across-writing-mode-boundary.html [ Ima
 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 ]
index 5c80077..8c0effb 100644 (file)
@@ -1775,9 +1775,6 @@ webkit.org/b/85522 http/tests/security/sandboxed-iframe-form-top.html [ Skip ]
 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 ]
 
index aa7b56a..864f205 100644 (file)
@@ -637,8 +637,6 @@ webkit.org/b/107194 storage/indexeddb/lazy-index-population.html [ Failure Pass
 # End of Flaky tests
 #////////////////////////////////////////////////////////////////////////////////////////
 
-webkit.org/b/106086 fast/dom/HTMLTemplateElement/ownerDocument-adoptNode.html [ Failure Pass ]
-
 #////////////////////////////////////////////////////////////////////////////////////////
 # Slow tests
 #////////////////////////////////////////////////////////////////////////////////////////