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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/Selection/selection-interface.html

Issue 1908423003: Make Selection.prototype.toString() enumerable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove WebKitCSSMatrix test Created 4 years, 8 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/js/toString-dontEnum.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/dom/Selection/selection-interface.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/Selection/selection-interface.html b/third_party/WebKit/LayoutTests/fast/dom/Selection/selection-interface.html
new file mode 100644
index 0000000000000000000000000000000000000000..ddf56b0d0878abde0c31bbff6516042aded93ef6
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/dom/Selection/selection-interface.html
@@ -0,0 +1,45 @@
+<!DOCTYPE HTML>
+<link rel="help" href="https://w3c.github.io/selection-api/#idl-def-Selection">
+<script src="../../../resources/testharness.js"></script>
+<script src="../../../resources/testharnessreport.js"></script>
+<script>
+test(function() {
+ function assert_enumerable(p, isReadOnly) {
+ assert_true(p in Selection.prototype);
+ assert_true(Selection.prototype.propertyIsEnumerable(p));
+ if (isReadOnly)
+ assert_equals(Object.getOwnPropertyDescriptor(Selection.prototype, p).set, undefined);
+ }
+
+ assert_true('Selection' in self);
+
+ var readOnly = true;
+
+ // Verify spec interface coverage (only.)
+
+ assert_enumerable('anchorNode', readOnly);
+ assert_enumerable('anchorOffset', readOnly);
+ assert_enumerable('focusNode', readOnly);
+ assert_enumerable('focusOffset', readOnly);
+ assert_enumerable('isCollapsed', readOnly);
+ assert_enumerable('rangeCount', readOnly);
+ assert_enumerable('type', readOnly);
+
+ assert_enumerable('getRangeAt');
+ assert_enumerable('addRange');
+ // Not implemented: crbug.com/391673
+ //assert_enumerable('removeRange');
+ assert_enumerable('removeAllRanges');
+ assert_enumerable('empty');
+ assert_enumerable('collapse');
+ assert_enumerable('setPosition');
+ assert_enumerable('collapseToStart');
+ assert_enumerable('collapseToEnd');
+ assert_enumerable('extend');
+ assert_enumerable('setBaseAndExtent');
+ assert_enumerable('selectAllChildren');
+ assert_enumerable('deleteFromDocument');
+ assert_enumerable('containsNode');
+ assert_enumerable('toString');
+}, 'Selection interface');
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/js/toString-dontEnum.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698