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

Unified Diff: LayoutTests/imported/web-platform-tests/shadow-dom/elements-and-dom-objects/shadowroot-object/shadowroot-methods/test-006.html

Issue 1228353008: Remove W3CImportExpectations entries already fixed in upstream (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: TestExpectatons update Created 5 years, 5 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
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>

Powered by Google App Engine
This is Rietveld 408576698