| Index: third_party/WebKit/LayoutTests/inspector-protocol/page/createIsolatedWorld.html
|
| diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/page/createIsolatedWorld.html b/third_party/WebKit/LayoutTests/inspector-protocol/page/createIsolatedWorld.html
|
| deleted file mode 100644
|
| index 77dfaad0e7cc91e34493f9f7a752c1f02ebba957..0000000000000000000000000000000000000000
|
| --- a/third_party/WebKit/LayoutTests/inspector-protocol/page/createIsolatedWorld.html
|
| +++ /dev/null
|
| @@ -1,73 +0,0 @@
|
| -<html>
|
| -<head>
|
| -<script type="text/javascript" src="../../http/tests/inspector-protocol/resources/inspector-protocol-test.js"></script>
|
| -<script>
|
| -
|
| -function test()
|
| -{
|
| - var mainFrameId = "";
|
| - var executionContextId;
|
| - var createIsolatedWorldReturnValue;
|
| - InspectorTest.eventHandler["Runtime.executionContextCreated"] =
|
| - function(message) {
|
| - if (message.params.context.auxData.frameId !== mainFrameId)
|
| - return;
|
| - if (message.params.context.auxData.isDefault === false &&
|
| - message.params.context.name === "Test world") {
|
| - executionContextId = message.params.context.id;
|
| - maybeFinish();
|
| - } else {
|
| - InspectorTest.log("fail - main world created.");
|
| - InspectorTest.log(JSON.stringify(message.params));
|
| - InspectorTest.completeTest();
|
| - }
|
| - };
|
| -
|
| - function maybeFinish() {
|
| - if (!executionContextId || !createIsolatedWorldReturnValue)
|
| - return;
|
| - if (executionContextId === createIsolatedWorldReturnValue) {
|
| - InspectorTest.log("PASS - execution context id match.");
|
| - } else {
|
| - InspectorTest.log("fail - execution context id differ.");
|
| - }
|
| - InspectorTest.completeTest();
|
| - }
|
| -
|
| - InspectorTest.sendCommandOrDie("Runtime.enable", {}, runtimeAgentEnabled);
|
| -
|
| - function runtimeAgentEnabled() {
|
| - InspectorTest.log("Runtime enabled");
|
| -
|
| - InspectorTest.sendCommandOrDie("Page.enable", {}, pageAgentEnabled);
|
| - }
|
| -
|
| - function pageAgentEnabled() {
|
| - InspectorTest.log("Page enabled");
|
| - InspectorTest.sendCommandOrDie(
|
| - "Page.getResourceTree", {}, resourceTreeLoaded);
|
| - }
|
| -
|
| - function resourceTreeLoaded(payload) {
|
| - mainFrameId = payload.frameTree.frame.id;
|
| - onMainFrameId(mainFrameId);
|
| - }
|
| -
|
| - function onMainFrameId(mainFrameId) {
|
| - InspectorTest.log("Main Frame obtained");
|
| - InspectorTest.sendCommandOrDie("Page.createIsolatedWorld", {
|
| - frameId: mainFrameId, worldName: "Test world"},
|
| - isolatedWorldCreated);
|
| - }
|
| -
|
| - function isolatedWorldCreated(payload) {
|
| - createIsolatedWorldReturnValue = payload.executionContextId;
|
| - maybeFinish();
|
| - }
|
| -}
|
| -
|
| -</script>
|
| -</head>
|
| -<body onload="runTest()">
|
| -</body>
|
| -</html>
|
|
|