[SCM] WebKit Debian packaging branch, debian/unstable, updated. debian/1.1.18-1-697-g2f78b87
ojan at chromium.org
ojan at chromium.org
Wed Jan 20 22:19:42 UTC 2010
The following commit has been merged in the debian/unstable branch:
commit b555062d64a2d83e5a4ce9d8e210f0c1c408980b
Author: ojan at chromium.org <ojan at chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Mon Jan 11 21:54:24 2010 +0000
2010-01-11 Ojan Vafai <ojan at chromium.org>
Reviewed by Simon Fraser.
Deflake transitions and animations tests.
https://bugs.webkit.org/show_bug.cgi?id=30029
The transition-end-event tests all had arbitrary timeouts. Give a consistent
timeout to all of them. Give a generous 1 second of buffer to avoid any possibility
of flakiness. If all the transitionEnd events fire before then, the test still
completes without waiting for the timeout.
* animations/change-keyframes.html:
Increase the wiggle room. It's infrequently flaky now, but it is still
a tad bit flaky without this extra wiggle room.
* transitions/repeated-firing-background-color.html:
Remove a gratuitous setTimeout.
* transitions/transition-end-event-all-properties.html:
* transitions/transition-end-event-attributes.html:
* transitions/transition-end-event-container.html:
* transitions/transition-end-event-helpers.js:
(runTransitionTest.startTest):
(runTransitionTest):
* transitions/transition-end-event-left.html:
* transitions/transition-end-event-multiple-01.html:
* transitions/transition-end-event-multiple-02.html:
* transitions/transition-end-event-multiple-03.html:
* transitions/transition-end-event-multiple-04.html:
* transitions/transition-end-event-nested.html:
* transitions/transition-end-event-set-none.html:
* transitions/transition-end-event-transform.html:
* transitions/transition-end-event-window.html:
* transitions/zero-duration-with-non-zero-delay-end.html:
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@53097 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog
index 4459086..0b4c6a0 100644
--- a/LayoutTests/ChangeLog
+++ b/LayoutTests/ChangeLog
@@ -1,3 +1,37 @@
+2010-01-11 Ojan Vafai <ojan at chromium.org>
+
+ Reviewed by Simon Fraser.
+
+ Deflake transitions and animations tests.
+ https://bugs.webkit.org/show_bug.cgi?id=30029
+
+ The transition-end-event tests all had arbitrary timeouts. Give a consistent
+ timeout to all of them. Give a generous 1 second of buffer to avoid any possibility
+ of flakiness. If all the transitionEnd events fire before then, the test still
+ completes without waiting for the timeout.
+
+ * animations/change-keyframes.html:
+ Increase the wiggle room. It's infrequently flaky now, but it is still
+ a tad bit flaky without this extra wiggle room.
+ * transitions/repeated-firing-background-color.html:
+ Remove a gratuitous setTimeout.
+ * transitions/transition-end-event-all-properties.html:
+ * transitions/transition-end-event-attributes.html:
+ * transitions/transition-end-event-container.html:
+ * transitions/transition-end-event-helpers.js:
+ (runTransitionTest.startTest):
+ (runTransitionTest):
+ * transitions/transition-end-event-left.html:
+ * transitions/transition-end-event-multiple-01.html:
+ * transitions/transition-end-event-multiple-02.html:
+ * transitions/transition-end-event-multiple-03.html:
+ * transitions/transition-end-event-multiple-04.html:
+ * transitions/transition-end-event-nested.html:
+ * transitions/transition-end-event-set-none.html:
+ * transitions/transition-end-event-transform.html:
+ * transitions/transition-end-event-window.html:
+ * transitions/zero-duration-with-non-zero-delay-end.html:
+
2010-01-11 Darin Adler <darin at apple.com>
Try to get find-kana and find-russian tests passing on Qt.
diff --git a/LayoutTests/animations/change-keyframes.html b/LayoutTests/animations/change-keyframes.html
index 9741320..b7016d2 100644
--- a/LayoutTests/animations/change-keyframes.html
+++ b/LayoutTests/animations/change-keyframes.html
@@ -55,7 +55,7 @@
keyframes.deleteRule("60%");
keyframes.deleteRule("100%");
keyframes.insertRule("0% { top: 50px; }");
- keyframes.insertRule("30% { top: 100px; }");
+ keyframes.insertRule("10% { top: 100px; }");
keyframes.insertRule("50% { top: 100px; }");
keyframes.insertRule("100% { top: 150px; }");
document.getElementById('box').style.webkitAnimationName = "anim";
diff --git a/LayoutTests/transitions/repeated-firing-background-color.html b/LayoutTests/transitions/repeated-firing-background-color.html
index 7050626..0957570 100644
--- a/LayoutTests/transitions/repeated-firing-background-color.html
+++ b/LayoutTests/transitions/repeated-firing-background-color.html
@@ -19,11 +19,10 @@
document.getElementById('result').innerHTML = "Number of active transitions is (" + current + ") but was expecting (0)";
layoutTestController.notifyDone();
}
-
+
if (window.layoutTestController) {
layoutTestController.dumpAsText();
layoutTestController.waitUntilDone();
- window.setTimeout(checkRunning, 300);
}
</script>
</head>
@@ -32,6 +31,11 @@
<div id="foo">This should not be continually firing transitions</span>
<script type="text/javascript" charset="utf-8">
+
+ document.getElementById('foo').addEventListener('webkitTransitionEnd', function() {
+ checkRunning()
+ });
+
document.getElementById("foo").className="trans";
</script>
diff --git a/LayoutTests/transitions/transition-end-event-all-properties.html b/LayoutTests/transitions/transition-end-event-all-properties.html
index dbf4849..1412348 100644
--- a/LayoutTests/transitions/transition-end-event-all-properties.html
+++ b/LayoutTests/transitions/transition-end-event-all-properties.html
@@ -52,7 +52,7 @@
}
}
- runTransitionTest(expectedEndEvents, 1.0, setupTest);
+ runTransitionTest(expectedEndEvents, setupTest);
</script>
</head>
diff --git a/LayoutTests/transitions/transition-end-event-attributes.html b/LayoutTests/transitions/transition-end-event-attributes.html
index b53a22f..37737a3 100644
--- a/LayoutTests/transitions/transition-end-event-attributes.html
+++ b/LayoutTests/transitions/transition-end-event-attributes.html
@@ -27,7 +27,7 @@
box.style.left = '200px';
}
- runTransitionTest(expectedEndEvents, 0.7, setupTest);
+ runTransitionTest(expectedEndEvents, setupTest);
</script>
</head>
diff --git a/LayoutTests/transitions/transition-end-event-container.html b/LayoutTests/transitions/transition-end-event-container.html
index 0cdfbd4..8444989 100644
--- a/LayoutTests/transitions/transition-end-event-container.html
+++ b/LayoutTests/transitions/transition-end-event-container.html
@@ -29,7 +29,7 @@
box.style.left = '200px';
}
- runTransitionTest(expectedEndEvents, 0.7, setupTest);
+ runTransitionTest(expectedEndEvents, setupTest);
</script>
</head>
<body>
diff --git a/LayoutTests/transitions/transition-end-event-helpers.js b/LayoutTests/transitions/transition-end-event-helpers.js
index e9d0854..5afee34 100644
--- a/LayoutTests/transitions/transition-end-event-helpers.js
+++ b/LayoutTests/transitions/transition-end-event-helpers.js
@@ -36,7 +36,6 @@ Test page requirements:
Function parameters:
expected [required]: an array of arrays defining the expected parameter values for the recorded transition end events (see below)
- timeout [required]:
callback [optional]: a function to be executed just before the test starts (none by default)
Each sub-array must contain these items in this order:
@@ -46,7 +45,7 @@ Function parameters:
- a boolean indicating if an event listener should be automatically added to the element to record the transition end event or if the script calls recordTransitionEndEvent() directly
*/
-function runTransitionTest(expected, timeout, callback)
+function runTransitionTest(expected, callback)
{
_expectedEventCount = expected.length;
@@ -135,21 +134,29 @@ function runTransitionTest(expected, timeout, callback)
layoutTestController.notifyDone();
}
- function startTest(expected, timeout, callback)
+ function startTest(expected, callback)
{
if (callback)
callback();
+ var maxTime = 0;
+
for (var i=0; i < expected.length; ++i) {
if (expected[i][3]) {
var box = document.getElementById(expected[i][1]);
box.addEventListener("webkitTransitionEnd", recordTransitionEndEvent, false);
}
+
+ var time = expected[i][2];
+ if (time > maxTime)
+ maxTime = time;
}
_endFunction = function() { processEndEvents(expected); };
- window.setTimeout(_endFunction, timeout * 1000);
+ // Add one second of fudge. We don't just use the run-webkit-tests timeout
+ // because processEndEvents gives more information on what failed.
+ window.setTimeout(_endFunction, maxTime * 1000 + 1000);
}
- window.addEventListener('load', function() { startTest(expected, timeout, callback) }, false);
+ window.addEventListener('load', function() { startTest(expected, callback) }, false);
}
diff --git a/LayoutTests/transitions/transition-end-event-left.html b/LayoutTests/transitions/transition-end-event-left.html
index 12347d3..5e4c6b8 100644
--- a/LayoutTests/transitions/transition-end-event-left.html
+++ b/LayoutTests/transitions/transition-end-event-left.html
@@ -27,8 +27,7 @@
box.style.left = '200px';
}
- runTransitionTest(expectedEndEvents, 0.7, setupTest);
-
+ runTransitionTest(expectedEndEvents, setupTest);
</script>
</head>
<body>
diff --git a/LayoutTests/transitions/transition-end-event-multiple-01.html b/LayoutTests/transitions/transition-end-event-multiple-01.html
index 6b56c44..f582c8e 100644
--- a/LayoutTests/transitions/transition-end-event-multiple-01.html
+++ b/LayoutTests/transitions/transition-end-event-multiple-01.html
@@ -34,7 +34,7 @@
box.style.height = '80px';
}
- runTransitionTest(expectedEndEvents, 0.7, setupTest);
+ runTransitionTest(expectedEndEvents, setupTest);
</script>
</head>
diff --git a/LayoutTests/transitions/transition-end-event-multiple-02.html b/LayoutTests/transitions/transition-end-event-multiple-02.html
index c802c33..934ac8c 100644
--- a/LayoutTests/transitions/transition-end-event-multiple-02.html
+++ b/LayoutTests/transitions/transition-end-event-multiple-02.html
@@ -54,7 +54,7 @@
}
}
- runTransitionTest(expectedEndEvents, 1.0, setupTest);
+ runTransitionTest(expectedEndEvents, setupTest);
</script>
</head>
diff --git a/LayoutTests/transitions/transition-end-event-multiple-03.html b/LayoutTests/transitions/transition-end-event-multiple-03.html
index 328bbe8..f9e16fb 100644
--- a/LayoutTests/transitions/transition-end-event-multiple-03.html
+++ b/LayoutTests/transitions/transition-end-event-multiple-03.html
@@ -77,7 +77,7 @@
window.setTimeout(function() { transitionElement(5); }, 150);
}
- runTransitionTest(expectedEndEvents, 2.0, setupTest);
+ runTransitionTest(expectedEndEvents, setupTest);
</script>
</head>
diff --git a/LayoutTests/transitions/transition-end-event-multiple-04.html b/LayoutTests/transitions/transition-end-event-multiple-04.html
index c021065..8ec1969 100644
--- a/LayoutTests/transitions/transition-end-event-multiple-04.html
+++ b/LayoutTests/transitions/transition-end-event-multiple-04.html
@@ -68,7 +68,7 @@
window.setTimeout(function() { transitionElement(5); }, 150);
}
- runTransitionTest(expectedEndEvents, 1.0, setupTest);
+ runTransitionTest(expectedEndEvents, setupTest);
</script>
</head>
diff --git a/LayoutTests/transitions/transition-end-event-nested.html b/LayoutTests/transitions/transition-end-event-nested.html
index a49b571..87beacc 100644
--- a/LayoutTests/transitions/transition-end-event-nested.html
+++ b/LayoutTests/transitions/transition-end-event-nested.html
@@ -77,7 +77,7 @@
box.className = "box box1";
}
- runTransitionTest(expectedEndEvents, 2.0, setupTest);
+ runTransitionTest(expectedEndEvents, setupTest);
</script>
</head>
diff --git a/LayoutTests/transitions/transition-end-event-set-none.html b/LayoutTests/transitions/transition-end-event-set-none.html
index 178bf1f..548c6f2 100644
--- a/LayoutTests/transitions/transition-end-event-set-none.html
+++ b/LayoutTests/transitions/transition-end-event-set-none.html
@@ -51,7 +51,7 @@
box.className = "box box1";
}
- runTransitionTest(expectedEndEvents, 0.5, setupTest);
+ runTransitionTest(expectedEndEvents, setupTest);
</script>
</head>
diff --git a/LayoutTests/transitions/transition-end-event-transform.html b/LayoutTests/transitions/transition-end-event-transform.html
index 9324ce4..a5b92c5 100644
--- a/LayoutTests/transitions/transition-end-event-transform.html
+++ b/LayoutTests/transitions/transition-end-event-transform.html
@@ -28,7 +28,7 @@
box.style.webkitTransform = 'translate(200px)';
}
- runTransitionTest(expectedEndEvents, 0.7, setupTest);
+ runTransitionTest(expectedEndEvents, setupTest);
</script>
</head>
diff --git a/LayoutTests/transitions/transition-end-event-window.html b/LayoutTests/transitions/transition-end-event-window.html
index 3efc05c..101c118 100644
--- a/LayoutTests/transitions/transition-end-event-window.html
+++ b/LayoutTests/transitions/transition-end-event-window.html
@@ -29,7 +29,7 @@
box.style.left = '200px';
}
- runTransitionTest(expectedEndEvents, 0.7, setupTest);
+ runTransitionTest(expectedEndEvents, setupTest);
</script>
</head>
diff --git a/LayoutTests/transitions/zero-duration-with-non-zero-delay-end.html b/LayoutTests/transitions/zero-duration-with-non-zero-delay-end.html
index 0749839..4418418 100644
--- a/LayoutTests/transitions/zero-duration-with-non-zero-delay-end.html
+++ b/LayoutTests/transitions/zero-duration-with-non-zero-delay-end.html
@@ -59,8 +59,7 @@
var target = document.getElementById('target');
target.style.left = '200px';
-
- window.setTimeout(runTest, 0);
+ runTest();
}
}
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list