| Index: LayoutTests/imported/web-platform-tests/shadow-dom/elements-and-dom-objects/shadowroot-object/shadowroot-methods/test-006.html
|
| diff --git a/LayoutTests/imported/web-platform-tests/shadow-dom/elements-and-dom-objects/shadowroot-object/shadowroot-methods/test-006.html b/LayoutTests/imported/web-platform-tests/shadow-dom/elements-and-dom-objects/shadowroot-object/shadowroot-methods/test-006.html
|
| index 98fbd999e96a1800a8d4acae65622ce0771d2379..1a5494d563177fe2985124283e36d48385ffea37 100644
|
| --- a/LayoutTests/imported/web-platform-tests/shadow-dom/elements-and-dom-objects/shadowroot-object/shadowroot-methods/test-006.html
|
| +++ b/LayoutTests/imported/web-platform-tests/shadow-dom/elements-and-dom-objects/shadowroot-object/shadowroot-methods/test-006.html
|
| @@ -24,7 +24,7 @@ policies and contribution forms [3].
|
| <script>
|
| test(function () {
|
|
|
| - var d = newHTMLDocument();
|
| + var d = newHTMLDocument();
|
|
|
| var el = d.createElement('div');
|
| d.body.appendChild(el);
|
| @@ -37,6 +37,22 @@ test(function () {
|
| }
|
|
|
| }, 'A_10_01_02_06_01_T01');
|
| +
|
| +// Added test for checking if elementFromPoint() method is existing on Shadowroot.
|
| +test(function () {
|
| +
|
| + var d = newHTMLDocument();
|
| +
|
| + var el = d.createElement('div');
|
| +
|
| + var s = el.createShadowRoot();
|
| + d.body.appendChild(el);
|
| +
|
| + if (typeof(s) == 'undefined' || typeof (s.elementFromPoint(1, 1)) != 'object') {
|
| + assert_true(false, 'Shadowroot doesn\'t have elementFromPoint() method.' );
|
| + }
|
| +
|
| +}, 'A_10_01_02_06_01_T02');
|
| </script>
|
| </body>
|
| </html>
|
|
|