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

Unified Diff: third_party/WebKit/LayoutTests/animations/animations-responsive-perspective.html

Issue 2973013002: Group all responsive animation tests together (Closed)
Patch Set: Rebase 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/animations-responsive-perspective.html
diff --git a/third_party/WebKit/LayoutTests/animations/animations-responsive-perspective.html b/third_party/WebKit/LayoutTests/animations/animations-responsive-perspective.html
deleted file mode 100644
index 3153ebc22884653947038e5441111c5d05ca6ac7..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/animations/animations-responsive-perspective.html
+++ /dev/null
@@ -1,35 +0,0 @@
-<!DOCTYPE html>
-<script src="../resources/testharness.js"></script>
-<script src="../resources/testharnessreport.js"></script>
-
-<div id='container'>
-<div id='element'></div>
-</div>
-
-<script>
-var element = document.getElementById('element');
-var container = document.getElementById('container');
-
-test(function() {
- element.style.fontSize = '10px';
- var player = element.animate([{perspective: '3em'}, {perspective: '5em'}], 10);
- player.pause();
- player.currentTime = 5;
- element.style.fontSize = '20px';
- assert_equals(getComputedStyle(element).perspective, '80px');
-}, 'perspective responsive to style changes');
-
-test(function() {
- element.style.fontSize = '10px';
- var player = element.animate([{perspective: '40px'}, {perspective: 'calc(40px - 2em)'}], 10);
- player.pause();
-
- player.currentTime = 5;
- element.style.fontSize = '40px';
- assert_equals(getComputedStyle(element).perspective, 'none');
-
- player.currentTime = 7.5;
- assert_equals(getComputedStyle(element).perspective, 'none');
-}, 'perspective clamped to none');
-
-</script>

Powered by Google App Engine
This is Rietveld 408576698