| Index: LayoutTests/fast/dom/shadow/pseudoclass-update-enabled-optgroup.html
|
| diff --git a/LayoutTests/fast/dom/shadow/pseudoclass-update-enabled-optgroup.html b/LayoutTests/fast/dom/shadow/pseudoclass-update-enabled-optgroup.html
|
| deleted file mode 100644
|
| index 8bf0d36b5931fdb50f886b003e054ec6033dc85b..0000000000000000000000000000000000000000
|
| --- a/LayoutTests/fast/dom/shadow/pseudoclass-update-enabled-optgroup.html
|
| +++ /dev/null
|
| @@ -1,56 +0,0 @@
|
| -<!DOCTYPE html>
|
| -<html>
|
| -<head>
|
| -<script src="../../../resources/js-test.js"></script>
|
| -</head>
|
| -
|
| -<body>
|
| -
|
| -<p>When an optgroup element became 'enabled' or not-'enabled', distribution should happen.</p>
|
| -<p>Since an optgroup element does not create a renderer, we cannot check this using reftest.</p>
|
| -
|
| -<div id="container">
|
| - <div id="host1">
|
| - <optgroup id="optgroup1">optgroup 1</optgroup>
|
| - <optgroup id="optgroup2">optgroup 2</optgroup>
|
| - </div>
|
| -
|
| - <div id="host2">
|
| - <optgroup id="optgroup3" disabled>optgroup 3</optgroup>
|
| - <optgroup id="optgroup4" disabled>optgroup 4</optgroup>
|
| - </div>
|
| -</div>
|
| -
|
| -<pre id="console"></pre>
|
| -
|
| -<script>
|
| -jsTestIsAsync = true;
|
| -
|
| -var shadowRoot1 = host1.createShadowRoot();
|
| -var shadowRoot2 = host2.createShadowRoot();
|
| -
|
| -shadowRoot1.innerHTML = '<content select=":enabled">';
|
| -shadowRoot2.innerHTML = '<content select=":enabled">';
|
| -
|
| -var content1 = shadowRoot1.querySelector('content');
|
| -var content2 = shadowRoot2.querySelector('content');
|
| -
|
| -setTimeout(function() {
|
| - optgroup2.setAttribute('disabled', true);
|
| - optgroup4.removeAttribute('disabled');
|
| -
|
| - nodes1 = content1.getDistributedNodes();
|
| - shouldBe('nodes1.length', '1');
|
| - shouldBe('nodes1.item(0).innerHTML', '"optgroup 1"');
|
| -
|
| - nodes2 = content2.getDistributedNodes();
|
| - shouldBe('nodes2.length', '1');
|
| - shouldBe('nodes2.item(0).innerHTML', '"optgroup 4"');
|
| -
|
| - container.innerHTML = "";
|
| - finishJSTest();
|
| -}, 0);
|
| -
|
| -</script>
|
| -</body>
|
| -</html>
|
|
|