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

Unified Diff: LayoutTests/inspector/sources/debugger/debugger-uncaught-promise-on-dom-exception.html

Issue 666343002: DevTools: Remove flaky part from promise tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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
Index: LayoutTests/inspector/sources/debugger/debugger-uncaught-promise-on-dom-exception.html
diff --git a/LayoutTests/inspector/sources/debugger/debugger-uncaught-promise-on-dom-exception.html b/LayoutTests/inspector/sources/debugger/debugger-uncaught-promise-on-dom-exception.html
deleted file mode 100644
index a2db05762e5b6d5536eea8b9e2a1aeeb4f4c9418..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/sources/debugger/debugger-uncaught-promise-on-dom-exception.html
+++ /dev/null
@@ -1,83 +0,0 @@
-<html>
-<head>
-<script src="../../../http/tests/inspector/inspector-test.js"></script>
-<script src="../../../http/tests/inspector/console-test.js"></script>
-<script src="../../../http/tests/inspector/debugger-test.js"></script>
-<script>
-
-function testFunction()
-{
- console.clear();
- debugger;
-}
-
-function runPromises()
-{
- var reject;
- var p = new Promise(function(res, rej) {
- reject = rej;
- });
- p.catch(function p_catch() {
- throwDOMException();
- });
- reject(new Error("FAIL: Should not be printed to console"));
-}
-
-function throwDOMException()
-{
- var a = document.createElement("div");
- var b = document.createElement("div");
- a.removeChild(b);
-}
-
-function runPromisesFromInspector()
-{
- // setTimeout to cut off VM call frames from the stack trace.
- setTimeout(function timeout() {
- runPromises()
- }, 0);
-}
-
-function test()
-{
- InspectorTest.setQuiet(true);
- InspectorTest.startDebuggerTest(step1);
-
- function step1()
- {
- InspectorTest.runTestFunctionAndWaitUntilPaused(didPause);
- }
-
- function didPause(callFrames, reason, breakpointIds, asyncStackTrace)
- {
- InspectorTest.addConsoleViewSniffer(addMessage, true);
- InspectorTest.evaluateInPage("runPromisesFromInspector()", resumeExecution);
- }
-
- function resumeExecution()
- {
- InspectorTest.resumeExecution();
- }
-
- function addMessage(uiMessage)
- {
- InspectorTest.expandConsoleMessages(dump);
- }
-
- function dump()
- {
- InspectorTest.dumpConsoleMessages(false, false, InspectorTest.textContentWithLineBreaks);
- InspectorTest.completeTest();
- }
-}
-
-</script>
-</head>
-
-<body onload="runTest()">
-<p>
-Tests unhandled promise that was rejected with a DOM exception.
-</p>
-
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698