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

Unified Diff: third_party/WebKit/LayoutTests/shadow-dom/cascade-upgrade-from-v0-to-v1.html

Issue 2074393002: Clean up shadow-dom layout tests so that they are well organized (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/shadow-dom/cascade-upgrade-from-v0-to-v1.html
diff --git a/third_party/WebKit/LayoutTests/shadow-dom/cascade-upgrade-from-v0-to-v1.html b/third_party/WebKit/LayoutTests/shadow-dom/cascade-upgrade-from-v0-to-v1.html
deleted file mode 100644
index 12ef1c96487a7825cdf4b7974a800f064468422e..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/shadow-dom/cascade-upgrade-from-v0-to-v1.html
+++ /dev/null
@@ -1,21 +0,0 @@
-<!DOCTYPE html>
-<script src='../resources/testharness.js'></script>
-<script src='../resources/testharnessreport.js'></script>
-<style>
-div { color: red; }
-</style>
-<div id='host'></div>
-<div id='dummy'></div>
-<script>
-'use strict';
-
-var root = host.createShadowRoot();
-root.innerHTML = '<style>:host(#host) { color: green; }</style>';
-
-test(() => {
- assert_equals(window.getComputedStyle(host).color, 'rgb(0, 128, 0)');
- // Trigger "V1" shadow cascading order.
- dummy.attachShadow({mode: 'open'});
- assert_equals(window.getComputedStyle(host).color, 'rgb(255, 0, 0)');
-}, 'Upgrading V0 to V1 should cause style recalculation.');
-</script>

Powered by Google App Engine
This is Rietveld 408576698