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

Unified 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: review fix Created 6 years 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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/HTMLLinkElement/transition-exiting-stylesheet-enable-disable-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/HTMLLinkElement/transition-exiting-stylesheet-enable-disable.html
diff --git a/LayoutTests/fast/dom/HTMLLinkElement/transition-exiting-stylesheet-enable-disable.html b/LayoutTests/fast/dom/HTMLLinkElement/transition-exiting-stylesheet-enable-disable.html
new file mode 100644
index 0000000000000000000000000000000000000000..1c39640a0f4974a31618797f61d4309df344c0f9
--- /dev/null
+++ b/LayoutTests/fast/dom/HTMLLinkElement/transition-exiting-stylesheet-enable-disable.html
@@ -0,0 +1,42 @@
+<!DOCTYPE html>
+<link rel="transition-exiting-stylesheet" type="text/css" href="resources/stylesheet.css">
+<script src="../../../resources/js-test.js"></script>
+<script>
+onload = function() {
+ testPassed("Fired Load event.");
+ testStyle = getComputedStyle(document.getElementById("test"));
+ shouldBe('testStyle.color', '"rgb(0, 0, 0)"' /* black */);
+
+ if (internals)
+ internals.setExitTransitionStylesheetsEnabled(true);
+ window.setTimeout(checkEnable, 300);
+}
+
+function checkEnable() {
+ testStyle = getComputedStyle(document.getElementById("test"));
+ shouldBe('testStyle.color', '"rgb(0, 0, 255)"' /* blue */);
+
+ if (internals)
+ internals.setExitTransitionStylesheetsEnabled(false);
+ window.setTimeout(checkDisable, 300);
+}
+
+function checkDisable() {
+ testStyle = getComputedStyle(document.getElementById("test"));
+ shouldBe('testStyle.color', '"rgb(0, 0, 0)"' /* black */);
+
+ finishJSTest();
+}
+
+description('This test checks that transition-existing-stylesheet link resources are enabled and disabled correctly.');
+
+if (window.testRunner) {
+ testRunner.waitUntilDone();
+ testRunner.dumpAsText();
+ testRunner.dumpResourceResponseMIMETypes();
+}
+
+window.successfullyParsed = true;
+window.jsTestIsAsync = true;
+</script>
+<h1 id="test"><!-- Test element --></h1>
« no previous file with comments | « no previous file | LayoutTests/fast/dom/HTMLLinkElement/transition-exiting-stylesheet-enable-disable-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698