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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/Range/resources/detach-range-during-deletecontents-iframe.xhtml

Issue 1516553002: Remove deprecation messages for no-ops that are left in the specs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase and update tests Created 5 years 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 <!-- This file is intentionally malformed. -->
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <script>
5 <![CDATA[
6 var done = false;
7 var range = null;
8 var f = function ()
9 {
10 range = document.createRange();
11 range.expand("sentence");
12 range.deleteContents();
13 };
14 var repeat = 0;
15 var g = function ()
16 {
17 if (done)
18 return;
19 ++repeat;
20 if (repeat >= 2) {
21 done = true;
22 document.removeEventListener("DOMSubtreeModified", listener, true);
23 window.parent.postMessage("done", "*");
24 return;
25 }
26 range.detach();
27 };
28
29 var firstCall = true;
30 function listener()
31 {
32 if (firstCall) {
33 firstCall = false;
34 f();
35 } else
36 g();
37 }
38 document.addEventListener("DOMSubtreeModified", listener, true);
39
40 document.addEventListener("DOMContentLoaded", f);
41 ]]>
42 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698