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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/responsive/animations-responsive-fontSize.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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../resources/testharness.js"></script> 2 <script src="../../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script> 3 <script src="../../resources/testharnessreport.js"></script>
4 <div id='container'> 4 <div id='container'>
5 <div id='element'></div> 5 <div id='element'></div>
6 </div> 6 </div>
7 <script> 7 <script>
8 8
9 var container = document.getElementById('container'); 9 var container = document.getElementById('container');
10 var element = document.getElementById('element'); 10 var element = document.getElementById('element');
11 11
12 test(function() { 12 test(function() {
13 var keyframes = [ 13 var keyframes = [
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 container.style.fontFamily = 'monospace'; 63 container.style.fontFamily = 'monospace';
64 var player = element.animate(keyframes, 10); 64 var player = element.animate(keyframes, 10);
65 player.pause(); 65 player.pause();
66 player.currentTime = 5; 66 player.currentTime = 5;
67 fontSize = getComputedStyle(element).fontSize; 67 fontSize = getComputedStyle(element).fontSize;
68 container.style.fontFamily = 'serif'; 68 container.style.fontFamily = 'serif';
69 assert_not_equals(getComputedStyle(element).fontSize, fontSize); 69 assert_not_equals(getComputedStyle(element).fontSize, fontSize);
70 }, 'Font size initial responsive to style changes'); 70 }, 'Font size initial responsive to style changes');
71 71
72 </script> 72 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698