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

Unified Diff: third_party/WebKit/LayoutTests/fast/css/css-set-selector-text.html

Issue 1616423003: Fix selector namespace prefix resolution. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed review issues Created 4 years, 11 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/css/css-set-selector-text-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/css/css-set-selector-text.html
diff --git a/third_party/WebKit/LayoutTests/fast/css/css-set-selector-text.html b/third_party/WebKit/LayoutTests/fast/css/css-set-selector-text.html
index b209f9c31235edca335cad0300f8f9cf13a6db23..a5d3f3abbb90112929f6a92f89798e682a3a4f40 100644
--- a/third_party/WebKit/LayoutTests/fast/css/css-set-selector-text.html
+++ b/third_party/WebKit/LayoutTests/fast/css/css-set-selector-text.html
@@ -22,10 +22,10 @@ function setThenReadSelectorText(selector)
head.appendChild(styleElement);
// First, create a rule with a bogus selector.
- styleElement.appendChild(document.createTextNode(bogusSelector + " { }"));
+ styleElement.appendChild(document.createTextNode("@namespace n url(test); " + bogusSelector + " { }"));
// Now, set the desired selector text.
- styleElement.sheet.cssRules[0].selectorText = selector;
- return styleElement.sheet.cssRules[0].selectorText;
+ styleElement.sheet.cssRules[1].selectorText = selector;
+ return styleElement.sheet.cssRules[1].selectorText;
}
function testSelectorRoundTrip(selector, expectFailure)
@@ -66,6 +66,9 @@ testSelectorRoundTrip('*|*');
testSelectorRoundTrip('n|*');
testSelectorRoundTrip('[*|a]');
testSelectorRoundTrip('[n|a]');
+testSelectorRoundTrip('unresolved|a', true);
+testSelectorRoundTrip('unresolved|*', true);
+testSelectorRoundTrip('[unresolved|a]', true);
debug('');
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/css/css-set-selector-text-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698