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

Side by Side Diff: LayoutTests/fast/dom/NodeIterator/detach-no-op.html

Issue 256013002: Make NodeIterator.detach() a no-op (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Take feedback into consideration Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/fast/dom/NodeIterator/detach-no-op-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <link rel="help" href="http://dom.spec.whatwg.org/#dom-nodeiterator-detach">
5 <script src="../../../resources/js-test.js"></script>
6 </head>
7 <body>
8 <script>
9 description("This test checks that NodeIterator.detach() is a no-op.");
10
11 function createSampleDOM()
12 {
13 var div = document.createElement('div');
14 div.id = 'a';
15 div.innerHTML = '<div id="b">';
16 return div;
17 }
18
19 var root = createSampleDOM();
20 var iterator = document.createNodeIterator(root);
21 shouldBeEqualToString('iterator.nextNode().id', 'a');
22 shouldNotThrow('iterator.detach()');
23 shouldBeEqualToString('iterator.nextNode().id', 'b');
24 </script>
25 </body>
26 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/NodeIterator/detach-no-op-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698