Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Unified Diff: LayoutTests/transitions/transition-drt-api-delay.html

Issue 15738009: Beat the transition tests with a sanity stick. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Pass presubmit. Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/transitions/transition-drt-api-delay.html
diff --git a/LayoutTests/transitions/transition-drt-api-delay.html b/LayoutTests/transitions/transition-drt-api-delay.html
deleted file mode 100644
index 1f6c4e3270b82ebf44ca1e07e352d810dc8c0084..0000000000000000000000000000000000000000
--- a/LayoutTests/transitions/transition-drt-api-delay.html
+++ /dev/null
@@ -1,62 +0,0 @@
-<!DOCTYPE html>
-
-<html>
-<head>
- <style>
- #target {
- position: relative;
- left: 100px;
- height: 50px;
- width: 50px;
- background-color: green;
- -webkit-transition-property: left;
- -webkit-transition-duration: 4s;
- -webkit-transition-timing-function: linear;
- -webkit-transition-delay: 1s;
- }
-
- #target.moved {
- left: 200px;
- }
- </style>
- <script src="resources/transition-test-helpers.js"></script>
- <script>
- function endTest() {
- if (window.testRunner) {
- var target = document.getElementById('target');
- internals.pauseAnimations(2);
- var left = window.getComputedStyle(target).left;
- var result = "PASS";
- if (left != "125px") {
- result = "FAIL - expected 125px got " + left;
- }
- document.getElementById('result').innerHTML = "<p>" + result + "</p>";
- testRunner.notifyDone();
- }
- }
-
- function startTest() {
- if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.waitUntilDone();
- }
-
- document.getElementById("target").className = "moved";
- waitForAnimationStart(endTest, 1);
- }
- </script>
-</head>
-<body onload="startTest()">
- <h1>Test for transition delay on testRunner API</h1>
-
- <p>This test works only in DumpRenderTree. It uses an API exposed
- only there to jump to a particular time in a running transition.
- Tests bug <a href="https://bugs.webkit.org/show_bug.cgi?id=22368">22368</a>
- </p>
-
- <div id="target"></div>
-
- <div id="result"></div>
-
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698