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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/selection/interfaces-expected.txt

Issue 2686663004: Selection API: Selection.extend() should throw if rangeCount is 0. (Closed)
Patch Set: focus() -> collapse() Created 3 years, 10 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 unified diff | Download patch
OLDNEW
1 This is a testharness.js-based test. 1 This is a testharness.js-based test.
2 PASS Selection interface: existence and properties of interface object 2 PASS Selection interface: existence and properties of interface object
3 PASS Selection interface object length 3 PASS Selection interface object length
4 PASS Selection interface object name 4 PASS Selection interface object name
5 FAIL Selection interface: existence and properties of interface prototype object assert_equals: class string of Selection.prototype expected "[object SelectionP rototype]" but got "[object Selection]" 5 FAIL Selection interface: existence and properties of interface prototype object assert_equals: class string of Selection.prototype expected "[object SelectionP rototype]" but got "[object Selection]"
6 PASS Selection interface: existence and properties of interface prototype object 's "constructor" property 6 PASS Selection interface: existence and properties of interface prototype object 's "constructor" property
7 PASS Selection interface: attribute anchorNode 7 PASS Selection interface: attribute anchorNode
8 PASS Selection interface: attribute anchorOffset 8 PASS Selection interface: attribute anchorOffset
9 PASS Selection interface: attribute focusNode 9 PASS Selection interface: attribute focusNode
10 PASS Selection interface: attribute focusOffset 10 PASS Selection interface: attribute focusOffset
(...skipping 19 matching lines...) Expand all
30 PASS Selection interface: getSelection() must inherit property "isCollapsed" wit h the proper type (4) 30 PASS Selection interface: getSelection() must inherit property "isCollapsed" wit h the proper type (4)
31 PASS Selection interface: getSelection() must inherit property "collapse" with t he proper type (5) 31 PASS Selection interface: getSelection() must inherit property "collapse" with t he proper type (5)
32 FAIL Selection interface: calling collapse(Node,unsigned long) on getSelection() with too few arguments must throw TypeError assert_throws: Called with 1 argume nts function "function () { 32 FAIL Selection interface: calling collapse(Node,unsigned long) on getSelection() with too few arguments must throw TypeError assert_throws: Called with 1 argume nts function "function () {
33 fn.apply(obj, args); 33 fn.apply(obj, args);
34 }" did not throw 34 }" did not throw
35 PASS Selection interface: getSelection() must inherit property "collapseToStart" with the proper type (6) 35 PASS Selection interface: getSelection() must inherit property "collapseToStart" with the proper type (6)
36 PASS Selection interface: getSelection() must inherit property "collapseToEnd" w ith the proper type (7) 36 PASS Selection interface: getSelection() must inherit property "collapseToEnd" w ith the proper type (7)
37 PASS Selection interface: getSelection() must inherit property "extend" with the proper type (8) 37 PASS Selection interface: getSelection() must inherit property "extend" with the proper type (8)
38 FAIL Selection interface: calling extend(Node,unsigned long) on getSelection() w ith too few arguments must throw TypeError assert_throws: Called with 1 argument s function "function () { 38 FAIL Selection interface: calling extend(Node,unsigned long) on getSelection() w ith too few arguments must throw TypeError assert_throws: Called with 1 argument s function "function () {
39 fn.apply(obj, args); 39 fn.apply(obj, args);
40 }" did not throw 40 }" threw object "InvalidStateError: Failed to execute 'extend' on 'Selec tion': This Selection object doesn't have any Ranges." ("InvalidStateError") exp ected object "TypeError" ("TypeError")
41 PASS Selection interface: getSelection() must inherit property "selectAllChildre n" with the proper type (9) 41 PASS Selection interface: getSelection() must inherit property "selectAllChildre n" with the proper type (9)
42 PASS Selection interface: calling selectAllChildren(Node) on getSelection() with too few arguments must throw TypeError 42 PASS Selection interface: calling selectAllChildren(Node) on getSelection() with too few arguments must throw TypeError
43 PASS Selection interface: getSelection() must inherit property "deleteFromDocume nt" with the proper type (10) 43 PASS Selection interface: getSelection() must inherit property "deleteFromDocume nt" with the proper type (10)
44 PASS Selection interface: getSelection() must inherit property "rangeCount" with the proper type (11) 44 PASS Selection interface: getSelection() must inherit property "rangeCount" with the proper type (11)
45 PASS Selection interface: getSelection() must inherit property "getRangeAt" with the proper type (12) 45 PASS Selection interface: getSelection() must inherit property "getRangeAt" with the proper type (12)
46 PASS Selection interface: calling getRangeAt(unsigned long) on getSelection() wi th too few arguments must throw TypeError 46 PASS Selection interface: calling getRangeAt(unsigned long) on getSelection() wi th too few arguments must throw TypeError
47 PASS Selection interface: getSelection() must inherit property "addRange" with t he proper type (13) 47 PASS Selection interface: getSelection() must inherit property "addRange" with t he proper type (13)
48 PASS Selection interface: calling addRange(Range) on getSelection() with too few arguments must throw TypeError 48 PASS Selection interface: calling addRange(Range) on getSelection() with too few arguments must throw TypeError
49 FAIL Selection interface: getSelection() must inherit property "removeRange" wit h the proper type (14) assert_inherits: property "removeRange" not found in prot otype chain 49 FAIL Selection interface: getSelection() must inherit property "removeRange" wit h the proper type (14) assert_inherits: property "removeRange" not found in prot otype chain
50 FAIL Selection interface: calling removeRange(Range) on getSelection() with too few arguments must throw TypeError assert_inherits: property "removeRange" not f ound in prototype chain 50 FAIL Selection interface: calling removeRange(Range) on getSelection() with too few arguments must throw TypeError assert_inherits: property "removeRange" not f ound in prototype chain
51 PASS Selection interface: getSelection() must inherit property "removeAllRanges" with the proper type (15) 51 PASS Selection interface: getSelection() must inherit property "removeAllRanges" with the proper type (15)
52 Harness: the test ran to completion. 52 Harness: the test ran to completion.
53 53
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698