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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/animation/animation-KeyframeEffectReadOnly-crash.html

Issue 2493373002: DevTools: rename WebInspector into modules. (Closed)
Patch Set: for bots Created 4 years, 1 month 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 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script> 3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/elements-test.js"></script> 4 <script src="../../http/tests/inspector/elements-test.js"></script>
5 <script> 5 <script>
6 function startAnimationWithKeyframeEffect() 6 function startAnimationWithKeyframeEffect()
7 { 7 {
8 var effect = new KeyframeEffect(node, { opacity : [ 0, 0.9 ] }, 1000); 8 var effect = new KeyframeEffect(node, { opacity : [ 0, 0.9 ] }, 1000);
9 var anim = node.animate(null); 9 var anim = node.animate(null);
10 anim.effect = effect; 10 anim.effect = effect;
11 } 11 }
12 12
13 function startAnimationWithKeyframeEffectReadOnly() 13 function startAnimationWithKeyframeEffectReadOnly()
14 { 14 {
15 var effect = new KeyframeEffectReadOnly(nodeRO, { opacity : [ 0, 0.9 ] }, 10 00); 15 var effect = new KeyframeEffectReadOnly(nodeRO, { opacity : [ 0, 0.9 ] }, 10 00);
16 var anim = nodeRO.animate(null); 16 var anim = nodeRO.animate(null);
17 anim.effect = effect; 17 anim.effect = effect;
18 } 18 }
19 19
20 var initialize_Animations = function() { 20 var initialize_Animations = function() {
21 21
22 InspectorTest.preloadModule("animation"); 22 InspectorTest.preloadModule("animation");
23 } 23 }
24 24
25 function test() 25 function test()
26 { 26 {
27 WebInspector.viewManager.showView("animations"); 27 UI.viewManager.showView("animations");
28 var timeline = self.runtime.sharedInstance(WebInspector.AnimationTimeline); 28 var timeline = self.runtime.sharedInstance(Animation.AnimationTimeline);
29 InspectorTest.evaluateInPage("startAnimationWithKeyframeEffect()"); 29 InspectorTest.evaluateInPage("startAnimationWithKeyframeEffect()");
30 InspectorTest.waitForAnimationAdded(step2); 30 InspectorTest.waitForAnimationAdded(step2);
31 31
32 function step2(group) 32 function step2(group)
33 { 33 {
34 InspectorTest.waitForAnimationAdded(step3); 34 InspectorTest.waitForAnimationAdded(step3);
35 InspectorTest.evaluateInPage("startAnimationWithKeyframeEffectReadOnly() "); 35 InspectorTest.evaluateInPage("startAnimationWithKeyframeEffectReadOnly() ");
36 } 36 }
37 37
38 function step3(group) 38 function step3(group)
39 { 39 {
40 InspectorTest.completeTest(); 40 InspectorTest.completeTest();
41 } 41 }
42 } 42 }
43 43
44 </script> 44 </script>
45 </head> 45 </head>
46 46
47 <body onload="runTest()"> 47 <body onload="runTest()">
48 <p> 48 <p>
49 Tests that animations can be created with KeyframeEffect and 49 Tests that animations can be created with KeyframeEffect and
50 KeyframeEffectReadOnly without crashing. 50 KeyframeEffectReadOnly without crashing.
51 </p> 51 </p>
52 52
53 <div id="node" style="background-color: red; height: 100px"></div> 53 <div id="node" style="background-color: red; height: 100px"></div>
54 <div id="nodeRO" style="background-color: red; height: 100px"></div> 54 <div id="nodeRO" style="background-color: red; height: 100px"></div>
55 55
56 </body> 56 </body>
57 </html> 57 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698