| Index: LayoutTests/inspector/console/console-revoke-error.html
|
| diff --git a/LayoutTests/inspector/console/console-revoke-error.html b/LayoutTests/inspector/console/console-revoke-error.html
|
| deleted file mode 100644
|
| index 3e13fd5b24236fc123209317b48e09996a8f83b3..0000000000000000000000000000000000000000
|
| --- a/LayoutTests/inspector/console/console-revoke-error.html
|
| +++ /dev/null
|
| @@ -1,65 +0,0 @@
|
| -<html>
|
| -<head>
|
| -<script src="../../http/tests/inspector/inspector-test.js"></script>
|
| -<script src="../../http/tests/inspector/console-test.js"></script>
|
| -<script>
|
| -
|
| -var p = [];
|
| -
|
| -function createPromises()
|
| -{
|
| - for (var i = 0; i < 3; ++i)
|
| - p.push(Promise.reject(new Error("Handled error")));
|
| -}
|
| -
|
| -function handleSomeRejections()
|
| -{
|
| - p[0].catch(function() {});
|
| - p[2].catch(function() {});
|
| -}
|
| -
|
| -function test()
|
| -{
|
| - InspectorTest.consoleModel.addEventListener(WebInspector.ConsoleModel.Events.MessageAdded, messageAdded);
|
| -
|
| - InspectorTest.addResult("Creating promise");
|
| - InspectorTest.evaluateInPageWithTimeout("createPromises()");
|
| -
|
| - function messageAdded(event)
|
| - {
|
| - InspectorTest.addResult("");
|
| - InspectorTest.addResult("Message added: " + event.data.level + " " + event.data.type);
|
| - InspectorTest.addResult("errors: " + InspectorTest.consoleModel.errors());
|
| - InspectorTest.addResult("revokedErrors: " + InspectorTest.consoleModel.revokedErrors());
|
| -
|
| - if (event.data.level === WebInspector.ConsoleMessage.MessageLevel.Error) {
|
| - InspectorTest.consoleModel.removeEventListener(WebInspector.ConsoleModel.Events.MessageAdded, messageAdded);
|
| - // Process array as a batch.
|
| - setTimeout(function() {
|
| - InspectorTest.consoleModel.addEventListener(WebInspector.ConsoleModel.Events.MessageUpdated, messageUpdated);
|
| - InspectorTest.dumpConsoleClassesBrief();
|
| - InspectorTest.addResult("");
|
| - InspectorTest.addResult("Handling promise");
|
| - InspectorTest.evaluateInPageWithTimeout("handleSomeRejections()");
|
| - });
|
| - }
|
| - }
|
| -
|
| - function messageUpdated()
|
| - {
|
| - // Process array as a batch.
|
| - setTimeout(function() {
|
| - InspectorTest.dumpConsoleClassesBrief();
|
| - InspectorTest.completeTest();
|
| - });
|
| - }
|
| -}
|
| -
|
| -</script>
|
| -</head>
|
| -
|
| -<body onload="runTest()">
|
| -<p>Tests that console revokes lazily handled promise rejections.</p>
|
| -
|
| -</body>
|
| -</html>
|
|
|