Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / Range / create-contextual-fragment-script-not-ran.html
blob6bee01d9df7429ce844ed8a3894c9dddb35eb065
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <p>Tests createContextualFragment does not execute scripts immediately. You should see PASS below:</p>
5 <div id="test"></div>
6 <script>
7 var range = document.createRange();
8 var node = document.getElementById("test");
9 var count = 0;
10 range.selectNodeContents(node);
11 range.createContextualFragment("<script> count++; </script" + ">");
12 node.textContent = !count ? 'PASS' : 'FAIL - expected no execution but executed ' + count + ' times';
14 if (window.testRunner)
15 testRunner.dumpAsText();
17 </script>
18 </body>
19 </html>