| Index: LayoutTests/fast/dom/shadow/content-selector-query.html
|
| diff --git a/LayoutTests/fast/dom/shadow/content-selector-query.html b/LayoutTests/fast/dom/shadow/content-selector-query.html
|
| index d621c5229dfe1cfab47f4f0ea60eba84c64dcfac..a673a6a55fed39283540d676c9a2be714c07f22c 100644
|
| --- a/LayoutTests/fast/dom/shadow/content-selector-query.html
|
| +++ b/LayoutTests/fast/dom/shadow/content-selector-query.html
|
| @@ -54,62 +54,19 @@ var dataOfInvalidCases = [
|
| 'div:first-of-type, div', 'div, div:first-of-type', 'div:first-of-type, div:last-of-type', 'div:not(:not(div))', 'div:not(:hover)', 'div:not(div div)', 'div:not(div div:not)', 'div:not(div div:hover)', 'div div:not(:hover)',
|
| ];
|
|
|
| -var dataOfValidCasesIfPseudoClassIsAllowed = [
|
| - null, '',
|
| - 'ns|div', '*|div', '|div', 'div',
|
| - 'ns|*', '*|*', '|*', '*',
|
| - '.elem', 'p.elem', 'foo.elem', '*.right',
|
| - '#elem', 'p#elem', 'foo#elem', '*#something',
|
| - 'div[title]', 'div[class="example"]', 'div[hello="Cleveland"][goodbye="Columbus"]',
|
| - 'div[rel~="copyright"]', 'div[href="http://www.example.com/"]',
|
| - 'div[hreflang|="en"]', 'div[character=romeo]',
|
| - 'div:link', 'div:visited', 'div:target', 'div:enabled', 'div:checked',
|
| - 'div:indeterminate', 'div:nth-child(1)', 'div:nth-last-child(1)', 'div:nth-of-type(1)',
|
| - 'div:nth-last-of-type(1)', 'div:first-child', 'div:last-child', 'div:first-of-type',
|
| - 'div:last-of-type', 'div:only-of-type',
|
| - 'div:first-of-type:last-of-type', 'div.elem:visited', '*:visited',
|
| - 'div:first-of-type, div', 'div, div:first-of-type', 'div:first-of-type, div:last-of-type',
|
| - 'div, div', ' div, div ',
|
| - 'div:not(div)',
|
| -];
|
| -
|
| -var dataOfInvalidCasesIfPseudoClassIsAllowed = [
|
| - 'div div', 'div > div', 'div + div', 'div ~ div',
|
| - 'div:root', 'div:lang(en)',
|
| - 'div::before', 'div::after', 'div::first-line', 'div::first-letter',
|
| - 'div:active', 'div:hover', 'div:focus',
|
| - 'div div:not(div)', 'div:not(div) div', 'div span div',
|
| - 'div < div', 'div - dvi', '< div', '+div', '~div', 'div:!', '!:!', 'div::!', 'div::first_of_type',
|
| - 'pe;ro', '@screen', '@import "style.css"', 'div :first-of-type', 'div::first-of-type',
|
| - ' div, ,div', 'div \'\''
|
| -]
|
| -
|
| function doTest() {
|
| - if (!window.testRunner || !window.internals) {
|
| + if (!window.internals)
|
| return;
|
| - }
|
|
|
| - testRunner.dumpAsText();
|
| + if (window.testRunner)
|
| + testRunner.dumpAsText();
|
|
|
| - if (window.internals) {
|
| - internals.settings.setPseudoClassesInMatchingCriteriaInAuthorShadowTreesEnabled(false);
|
| - }
|
| for (var i = 0; i < dataOfValidCases.length; ++i) {
|
| test(dataOfValidCases[i], true);
|
| }
|
| for (var i = 0; i < dataOfInvalidCases.length; ++i) {
|
| test(dataOfInvalidCases[i], false);
|
| }
|
| -
|
| - if (window.internals) {
|
| - internals.settings.setPseudoClassesInMatchingCriteriaInAuthorShadowTreesEnabled(true);
|
| - }
|
| - for (var i = 0; i < dataOfValidCasesIfPseudoClassIsAllowed.length; ++i) {
|
| - test(dataOfValidCases[i], true);
|
| - }
|
| - for (var i = 0; i < dataOfInvalidCasesIfPseudoClassIsAllowed.length; ++i) {
|
| - test(dataOfInvalidCases[i], false);
|
| - }
|
| }
|
|
|
| doTest();
|
|
|