Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / DOMException / max-recursion-depth.html
blob6b9f5015acb57385b9396406742a2bf696cf210f
1 <!doctype html>
2 <script>
4 if (window.testRunner)
5 testRunner.dumpAsText();
7 var count = 43;
8 window.created = 0;
10 function define(name, child) {
11 var prototype = Object.create(HTMLElement.prototype);
12 prototype.createdCallback = function() {
13 created++;
14 if (created == count)
15 document.body.appendChild(document.createTextNode("PASS."))
16 document.createElement(child);
18 document.registerElement(name, {prototype: prototype});
21 var prefix = 'x-';
22 for (var i=0; i < count; i++) {
23 define(prefix + i, prefix + (i+1));
25 </script>
26 <p>
27 Tests that we can recurse up to 43 times between V8 and Blink.
28 You should see PASS below, and no stack size exceeded RangeError.
29 <x-0></x-0>