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

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: 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
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..641c3b8cad94d4f570ae93c8efc1a9a56e72610f
--- /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.enableExitTransitionStylesheets();
+ window.setTimeout(checkEnable, 300);
+}
+
+function checkEnable() {
+ testStyle = getComputedStyle(document.getElementById("test"));
+ shouldBe('testStyle.color', '"rgb(0, 0, 255)"' /* blue */);
+
+ if (internals)
+ internals.disableExitTransitionStylesheets();
+ 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>

Powered by Google App Engine
This is Rietveld 408576698