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

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/AnimationEffectTiming/duration.html

Issue 2015623004: Import wpt@ed94c51f3dfaa5ff4c9c311add1a560408059c51 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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: third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/AnimationEffectTiming/duration.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/web-animations/animation-effect-timing/duration.html b/third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/AnimationEffectTiming/duration.html
similarity index 90%
rename from third_party/WebKit/LayoutTests/imported/wpt/web-animations/animation-effect-timing/duration.html
rename to third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/AnimationEffectTiming/duration.html
index 662ff40c88b2d53e4c8048f1574a250837d918f5..30b143c5b6dfa18aa4211670bb849c89f73bd145 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/web-animations/animation-effect-timing/duration.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/AnimationEffectTiming/duration.html
@@ -3,9 +3,9 @@
<title>duration tests</title>
<link rel="help" href="http://w3c.github.io/web-animations/#dom-animationeffecttiming-duration">
<link rel="author" title="Ryo Motozawa" href="mailto:motozawa@mozilla-japan.org">
-<script src="../../../../resources/testharness.js"></script>
-<script src="../../../../resources/testharnessreport.js"></script>
-<script src="../testcommon.js"></script>
+<script src="../../../../../resources/testharness.js"></script>
+<script src="../../../../../resources/testharnessreport.js"></script>
+<script src="../../testcommon.js"></script>
<body>
<div id="log"></div>
<script>
@@ -15,11 +15,10 @@ test(function(t) {
var div = createDiv(t);
var anim = div.animate({ opacity: [ 0, 1 ] }, 2000);
anim.effect.timing.duration = 123.45;
- assert_approx_equals(anim.effect.timing.duration, 123.45, 0.000001,
- 'set duration 123.45');
- assert_approx_equals(anim.effect.getComputedTiming().duration, 123.45,
- 0.000001,
- 'getComputedTiming() after set duration 123.45');
+ assert_times_equal(anim.effect.timing.duration, 123.45,
+ 'set duration 123.45');
+ assert_times_equal(anim.effect.getComputedTiming().duration, 123.45,
+ 'getComputedTiming() after set duration 123.45');
}, 'set duration 123.45');
test(function(t) {

Powered by Google App Engine
This is Rietveld 408576698