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(''); |