Title: [201781] trunk/LayoutTests
- Revision
- 201781
- Author
- wei...@apple.com
- Date
- 2016-06-07 18:30:49 -0700 (Tue, 07 Jun 2016)
Log Message
Update tests to work around https://bugs.webkit.org/show_bug.cgi?id=158507.
* TestExpectations:
Re-enable now passing test.
* animations/script-tests/spring-computed-style.js:
* animations/script-tests/spring-parsing.js:
Use a non-body element to do the testing.
Modified Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (201780 => 201781)
--- trunk/LayoutTests/ChangeLog 2016-06-08 00:44:52 UTC (rev 201780)
+++ trunk/LayoutTests/ChangeLog 2016-06-08 01:30:49 UTC (rev 201781)
@@ -1,5 +1,16 @@
2016-06-07 Sam Weinig <s...@webkit.org>
+ Update tests to work around https://bugs.webkit.org/show_bug.cgi?id=158507.
+
+ * TestExpectations:
+ Re-enable now passing test.
+
+ * animations/script-tests/spring-computed-style.js:
+ * animations/script-tests/spring-parsing.js:
+ Use a non-body element to do the testing.
+
+2016-06-07 Sam Weinig <s...@webkit.org>
+
Mark animations/spring-computed-style.html as failing temporarily.
* TestExpectations:
Modified: trunk/LayoutTests/TestExpectations (201780 => 201781)
--- trunk/LayoutTests/TestExpectations 2016-06-08 00:44:52 UTC (rev 201780)
+++ trunk/LayoutTests/TestExpectations 2016-06-08 01:30:49 UTC (rev 201781)
@@ -981,5 +981,3 @@
webkit.org/b/157849 fast/frames/crash-during-iframe-load-stop.html [ Pass Timeout ]
webkit.org/b/158085 http/tests/css/shared-stylesheet-mutation.html [ Pass Failure ]
-
-animations/spring-computed-style.html [ Pass Failure ]
Modified: trunk/LayoutTests/animations/script-tests/spring-computed-style.js (201780 => 201781)
--- trunk/LayoutTests/animations/script-tests/spring-computed-style.js 2016-06-08 00:44:52 UTC (rev 201780)
+++ trunk/LayoutTests/animations/script-tests/spring-computed-style.js 2016-06-08 01:30:49 UTC (rev 201781)
@@ -8,15 +8,18 @@
var styleElement = document.createElement("style");
document.head.appendChild(styleElement);
stylesheet = styleElement.sheet;
+var div = document.createElement(div);
+div.id = "target";
+document.body.appendChild(div);
function testComputedSpring(description, spring, expectedValue)
{
debug("");
debug(description + " : " + spring);
- stylesheet.insertRule("body { transition-timing-function: " + spring + "; }", 0);
+ stylesheet.insertRule("#target { transition-timing-function: " + spring + "; }", 0);
- springStyle = window.getComputedStyle(document.body).getPropertyCSSValue("transition-timing-function");
+ springStyle = window.getComputedStyle(div).getPropertyCSSValue("transition-timing-function");
shouldBe("springStyle.cssText", "'" + expectedValue + "'");
stylesheet.deleteRule(0);
Modified: trunk/LayoutTests/animations/script-tests/spring-parsing.js (201780 => 201781)
--- trunk/LayoutTests/animations/script-tests/spring-parsing.js 2016-06-08 00:44:52 UTC (rev 201780)
+++ trunk/LayoutTests/animations/script-tests/spring-parsing.js 2016-06-08 01:30:49 UTC (rev 201781)
@@ -8,13 +8,16 @@
var styleElement = document.createElement("style");
document.head.appendChild(styleElement);
stylesheet = styleElement.sheet;
+var div = document.createElement(div);
+div.id = "target";
+document.body.appendChild(div);
function testSpring(description, spring, expectedValue)
{
debug("");
debug(description + " : " + spring);
- stylesheet.insertRule("body { transition-timing-function: " + spring + "; }", 0);
+ stylesheet.insertRule("#target { transition-timing-function: " + spring + "; }", 0);
cssRule = stylesheet.cssRules.item(0);
shouldBe("cssRule.type", "1");
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes