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

Side by Side Diff: LayoutTests/fast/dom/HTMLLinkElement/transition-exiting-stylesheet-enable-disable.html

Issue 653223002: Navigation transitions (web to native app): Revert exit transition (Blink side) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add tests Created 6 years, 2 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
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
esprehn 2014/10/15 18:01:26 leave out html, head and body.
Zhen Wang 2014/10/15 19:50:58 Done.
4 <link rel="transition-exiting-stylesheet" type="text/css" href="resources/styles heet.css">
5 <script src="../../../resources/js-test.js"></script>
6 <script>
7 function checkResult() {
esprehn 2014/10/15 18:01:26 onload = function() {
Zhen Wang 2014/10/15 19:50:58 Done.
8 testPassed("Fired Load event.");
9 testStyle = window.getComputedStyle(document.getElementById("test"), null);
esprehn 2014/10/15 18:01:26 Remove null second argument, you don't need it. Yo
Zhen Wang 2014/10/15 19:50:58 Done.
10 shouldBe('testStyle.color', '"rgb(0, 0, 0)"' /* black */);
11
12 internals.enableExitTransitionStylesheets();
esprehn 2014/10/15 18:01:26 if (internals)
Zhen Wang 2014/10/15 19:50:58 Done.
13 window.setTimeout(checkEnable, 300);
14 }
15
16 function checkEnable() {
17 testStyle = window.getComputedStyle(document.getElementById("test"), null);
18 shouldBe('testStyle.color', '"rgb(0, 0, 255)"' /* blue */);
19
20 internals.disableExitTransitionStylesheets();
esprehn 2014/10/15 18:01:26 ditto
Zhen Wang 2014/10/15 19:50:58 Done.
21 window.setTimeout(checkDisable, 300);
22 }
23
24 function checkDisable() {
25 testStyle = window.getComputedStyle(document.getElementById("test"), null);
26 shouldBe('testStyle.color', '"rgb(0, 0, 0)"' /* black */);
27
28 finishJSTest();
29 }
30
31 description('This test checks that transition-existing-stylesheet link resources are enabled and disabled correctly.');
32
33 if (window.testRunner) {
34 testRunner.waitUntilDone();
35 testRunner.dumpAsText();
36 testRunner.dumpResourceResponseMIMETypes();
37 }
38
39 window.successfullyParsed = true;
40 window.jsTestIsAsync = true;
41 </script>
42 </head>
43 <body onload="checkResult()">
44 <h1 id="test"><!-- Test element --></h1>
45 </body>
46 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698