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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/selection/interfaces.html

Issue 2630243004: Manually import wpt/editing and wpt/selection/ (Closed)
Patch Set: Add expectation Created 3 years, 11 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
(Empty)
1 <!doctype html>
2 <title>Selection interface tests</title>
3 <div id=log></div>
4 <script src=/resources/testharness.js></script>
5 <script src=/resources/testharnessreport.js></script>
6 <script src=/resources/WebIDLParser.js></script>
7 <script src=/resources/idlharness.js></script>
8 <script type=text/plain>
9 interface Selection {
10 readonly attribute Node? anchorNode;
11 readonly attribute unsigned long anchorOffset;
12 readonly attribute Node? focusNode;
13 readonly attribute unsigned long focusOffset;
14
15 readonly attribute boolean isCollapsed;
16 void collapse(Node node, unsigned long offset);
17 void collapseToStart();
18 void collapseToEnd();
19
20 void extend(Node node, unsigned long offset);
21
22 void selectAllChildren(Node node);
23 void deleteFromDocument();
24
25 readonly attribute unsigned long rangeCount;
26 Range getRangeAt(unsigned long index);
27 void addRange(Range range);
28 void removeRange(Range range);
29 void removeAllRanges();
30
31 stringifier;
32 };
33 </script>
34 <script>
35 "use strict";
36
37 var idlArray = new IdlArray();
38 idlArray.add_idls(document.querySelector("script[type=text\\/plain]").textConten t);
39 idlArray.add_objects({Selection: ['getSelection()']});
40 idlArray.test();
41 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698