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

Unified Diff: third_party/WebKit/LayoutTests/animations/animation-events-unprefixed-03.html

Issue 2970883003: Separate out animations tests with prefixing (Closed)
Patch Set: Rebaseline virtual/threaded version of test too Created 3 years, 5 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: third_party/WebKit/LayoutTests/animations/animation-events-unprefixed-03.html
diff --git a/third_party/WebKit/LayoutTests/animations/animation-events-unprefixed-03.html b/third_party/WebKit/LayoutTests/animations/animation-events-unprefixed-03.html
deleted file mode 100644
index 3c6e6806304c4d2500cfc930e2491336918e0cf4..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/animations/animation-events-unprefixed-03.html
+++ /dev/null
@@ -1,67 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <title>Tests that unprefixed animation events are correctly fired when using html event listeners (only unprefixed should be fired).</title>
- <style>
- #box {
- position: relative;
- left: 100px;
- top: 10px;
- height: 100px;
- width: 100px;
- background-color: #999;
- }
-
- .animate {
- animation-duration: 0.3s;
- animation-name: anim;
- }
-
- @keyframes anim {
- from { left: 200px; }
- to { left: 300px; }
- }
- </style>
- <script>
- if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.waitUntilDone();
- }
-
- var startEventReceived = false;
- var endEventReceived = false;
- var prefixedEventReceived = 0;
-
- function recordPrefixedEvent() {
- prefixedEventReceived++;
- }
-
- function recordAnimationStart() {
- startEventReceived = true;
- }
-
- function recordAnimationIteration() {
- if (startEventReceived && endEventReceived && prefixedEventReceived == 0) {
- document.getElementById('result').innerHTML = 'PASS: All events have been received as expected.';
- if (window.testRunner)
- testRunner.notifyDone();
- }
- }
-
- function recordAnimationEnd() {
- endEventReceived = true;
- document.getElementById('box').className = '';
- // Launch again the animation to catch the animation iteration events this time.
- requestAnimationFrame(function () {
- document.getElementById('box').style.animationIterationCount = "infinite";
- document.getElementById('box').className = 'animate';
- });
- }
- </script>
-</head>
-<body>
-Tests that unprefixed animation events are correctly fired when using html event listeners (only unprefixed should be fired).
-<pre id="result">FAIL: No animation events received</pre>
-<div id="box" onwebkitanimationstart="recordPrefixedEvent();" onwebkitanimationend="recordPrefixedEvent();" onwebkitanimationiteration="recordPrefixedEvent();" onanimationstart="recordAnimationStart();" onanimationend="recordAnimationEnd();" onanimationiteration="recordAnimationIteration();" class="animate"></div>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698