Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Unified Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger/promise-events.html

Issue 1827993002: [DevTools] Remove promise inspector experiment (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/sources/debugger/promise-events-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/inspector/sources/debugger/promise-events.html
diff --git a/third_party/WebKit/LayoutTests/inspector/sources/debugger/promise-events.html b/third_party/WebKit/LayoutTests/inspector/sources/debugger/promise-events.html
deleted file mode 100644
index 9578e1f2c916b7554ddee07761b0e6377cdba94d..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/inspector/sources/debugger/promise-events.html
+++ /dev/null
@@ -1,112 +0,0 @@
-<html>
-<head>
-<script src="../../../http/tests/inspector/inspector-test.js"></script>
-<script src="../../../http/tests/inspector/debugger-test.js"></script>
-<script>
-
-function testFunction()
-{
- var promise1 = new Promise(
- function promiseConstructor1(resolve, reject)
- {
- resolve("Resolved!");
- }
- );
- var promise2 = new Promise(
- function promiseConstructor2(resolve, reject)
- {
- reject("Rejected!");
- }
- );
- promise2
- .then(thenCallback1, thenCallback1)
- .then(thenCallback2);
-}
-
-function thenCallback1()
-{
- return 0;
-}
-
-function thenCallback2()
-{
- if (window.GCController)
- GCController.collectAll();
- debugger;
-}
-
-function test()
-{
- var events = [];
- var minPromiseId;
-
- InspectorTest.startDebuggerTest(step1, true);
-
- function step1()
- {
- InspectorTest.DebuggerAgent.enablePromiseTracker(true);
- InspectorTest.debuggerModel.addEventListener(WebInspector.DebuggerModel.Events.PromiseUpdated, promiseUpdated);
- InspectorTest.runTestFunctionAndWaitUntilPaused(step2);
- }
-
- function promiseUpdated(event)
- {
- var promiseId = event.data.promise.id;
- minPromiseId = Math.min(minPromiseId, promiseId) || promiseId;
- events.push(event.data);
- }
-
- function step2()
- {
- outputResults();
- InspectorTest.DebuggerAgent.disablePromiseTracker();
- InspectorTest.completeDebuggerTest();
- }
-
- function outputResults()
- {
- var output = [];
- for (var i = 0; i < events.length; i++) {
- var eventType = events[i].eventType;
- var promise = events[i].promise;
- var outputItem = [
- eventType + ":",
- "id: " + (promise.id - minPromiseId)
- ];
- switch (eventType) {
- case "new":
- var callFrame = promise.callFrame;
- if (callFrame) {
- var url = WebInspector.displayNameForURL(callFrame.url);
- outputItem.push(callFrame.functionName + " " + url + ":" + callFrame.lineNumber);
- }
- break;
- case "update":
- if (promise.status !== "pending") {
- outputItem.push("status: " + promise.status)
- var callFrame = promise.settlementStack && promise.settlementStack[0];
- if (callFrame) {
- var url = WebInspector.displayNameForURL(callFrame.url);
- outputItem.push(callFrame.functionName + " " + url + ":" + callFrame.lineNumber);
- }
- } else {
- outputItem.push("parent id: " + (promise.parentId - minPromiseId));
- }
- break;
- }
- output.push(outputItem.join("\n "));
- }
- output.sort();
- InspectorTest.addResults(output);
- }
-}
-
-</script>
-</head>
-
-<body onload="runTest()">
-<p>
-Tests promise tracker events in debugger.
-</p>
-</body>
-</html>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/sources/debugger/promise-events-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698