3 <script src="../../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../../http/tests/inspector/debugger-test.js"></script>
7 function testFunction()
9 setTimeout(timeout, 0);
14 window.addEventListener("paste", onPaste, false);
16 var input = document.getElementById("input");
17 input.value = "value";
20 document.execCommand("Copy");
24 document.execCommand("Paste");
30 window.removeEventListener("paste", onPaste, false);
31 var items = (e.originalEvent || e).clipboardData.items;
33 item.getAsString(onGetAsString);
36 function onGetAsString()
43 var totalDebuggerStatements = 2;
44 var maxAsyncCallStackDepth = 4;
45 InspectorTest.runAsyncCallStacksTest(totalDebuggerStatements, maxAsyncCallStackDepth);
51 <body onload="runTest()">
52 <input type="text" id="input"></input>
54 Tests asynchronous call stacks for DataTransferItem.getAsString.