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

Unified Diff: third_party/WebKit/LayoutTests/shadow-dom/link-title.html

Issue 2239353002: Ignored title in shadow should cause StyleSheet.title = null. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/link-title.html
diff --git a/third_party/WebKit/LayoutTests/shadow-dom/link-title.html b/third_party/WebKit/LayoutTests/shadow-dom/link-title.html
index 1e191c3a0ac85e9b70a80e59cc0a5b621237c9c5..94566b4c4cd8bbf6acd8821b3cd7d7d1fb1dcd9e 100644
--- a/third_party/WebKit/LayoutTests/shadow-dom/link-title.html
+++ b/third_party/WebKit/LayoutTests/shadow-dom/link-title.html
@@ -41,4 +41,11 @@ test(() => {
assert_equals(colorFor(host.shadowRoot.querySelector('#shadowChild4')), 'rgb(0, 0, 0)');
}, '<link rel="alternate stylesheet" title="xxx"> shoule behave as <link rel="alternate stylesheet"> (never enabled because title is ignored) in a connected shadow tree.');
+test(() => {
+ assert_equals(host.shadowRoot.styleSheets.length, 4);
+ assert_equals(host.shadowRoot.styleSheets[0].title, null);
+ assert_equals(host.shadowRoot.styleSheets[1].title, null);
+ assert_equals(host.shadowRoot.styleSheets[2].title, null);
+ assert_equals(host.shadowRoot.styleSheets[3].title, null);
+}, 'StyleSheet.title should always be null in shadow trees.');
</script>

Powered by Google App Engine
This is Rietveld 408576698