<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[245257] trunk/LayoutTests</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/245257">245257</a></dd>
<dt>Author</dt> <dd>drousso@apple.com</dd>
<dt>Date</dt> <dd>2019-05-13 15:16:55 -0700 (Mon, 13 May 2019)</dd>
</dl>

<h3>Log Message</h3>
<pre>[ Mac Debug ] Layout Test inspector/audit/basic.html is a flaky timeout on bots
https://bugs.webkit.org/show_bug.cgi?id=196448
<rdar://problem/49485452>

Reviewed by Alex Christensen.

Split inspector/audit/basic.html into separate tests so each part can run without timing out.

* inspector/audit/basic-async.html: Added.
* inspector/audit/basic-async-expected.txt: Added.
* inspector/audit/basic-boolean.html: Added.
* inspector/audit/basic-boolean-expected.txt: Added.
* inspector/audit/basic-debugger.html: Added.
* inspector/audit/basic-debugger-expected.txt: Added.
* inspector/audit/basic-error.html: Added.
* inspector/audit/basic-error-expected.txt: Added.
* inspector/audit/basic-object.html: Added.
* inspector/audit/basic-object-expected.txt: Added.
* inspector/audit/basic-promise.html: Added.
* inspector/audit/basic-promise-expected.txt: Added.
* inspector/audit/basic-string.html: Added.
* inspector/audit/basic-string-expected.txt: Added.
* inspector/audit/basic-timeout.html: Added.
* inspector/audit/basic-timeout-expected.txt: Added.

* inspector/audit/basic.html: Removed.
* inspector/audit/basic-expected.txt: Removed.

* platform/mac-wk1/TestExpectations:
* platform/mac-wk2/TestExpectations:</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsplatformmacwk1TestExpectations">trunk/LayoutTests/platform/mac-wk1/TestExpectations</a></li>
<li><a href="#trunkLayoutTestsplatformmacwk2TestExpectations">trunk/LayoutTests/platform/mac-wk2/TestExpectations</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsinspectorauditbasicasyncexpectedtxt">trunk/LayoutTests/inspector/audit/basic-async-expected.txt</a></li>
<li><a href="#trunkLayoutTestsinspectorauditbasicasynchtml">trunk/LayoutTests/inspector/audit/basic-async.html</a></li>
<li><a href="#trunkLayoutTestsinspectorauditbasicbooleanexpectedtxt">trunk/LayoutTests/inspector/audit/basic-boolean-expected.txt</a></li>
<li><a href="#trunkLayoutTestsinspectorauditbasicbooleanhtml">trunk/LayoutTests/inspector/audit/basic-boolean.html</a></li>
<li><a href="#trunkLayoutTestsinspectorauditbasicdebuggerexpectedtxt">trunk/LayoutTests/inspector/audit/basic-debugger-expected.txt</a></li>
<li><a href="#trunkLayoutTestsinspectorauditbasicdebuggerhtml">trunk/LayoutTests/inspector/audit/basic-debugger.html</a></li>
<li><a href="#trunkLayoutTestsinspectorauditbasicerrorexpectedtxt">trunk/LayoutTests/inspector/audit/basic-error-expected.txt</a></li>
<li><a href="#trunkLayoutTestsinspectorauditbasicerrorhtml">trunk/LayoutTests/inspector/audit/basic-error.html</a></li>
<li><a href="#trunkLayoutTestsinspectorauditbasicobjectexpectedtxt">trunk/LayoutTests/inspector/audit/basic-object-expected.txt</a></li>
<li><a href="#trunkLayoutTestsinspectorauditbasicobjecthtml">trunk/LayoutTests/inspector/audit/basic-object.html</a></li>
<li><a href="#trunkLayoutTestsinspectorauditbasicpromiseexpectedtxt">trunk/LayoutTests/inspector/audit/basic-promise-expected.txt</a></li>
<li><a href="#trunkLayoutTestsinspectorauditbasicpromisehtml">trunk/LayoutTests/inspector/audit/basic-promise.html</a></li>
<li><a href="#trunkLayoutTestsinspectorauditbasicstringexpectedtxt">trunk/LayoutTests/inspector/audit/basic-string-expected.txt</a></li>
<li><a href="#trunkLayoutTestsinspectorauditbasicstringhtml">trunk/LayoutTests/inspector/audit/basic-string.html</a></li>
<li><a href="#trunkLayoutTestsinspectorauditbasictimeoutexpectedtxt">trunk/LayoutTests/inspector/audit/basic-timeout-expected.txt</a></li>
<li><a href="#trunkLayoutTestsinspectorauditbasictimeouthtml">trunk/LayoutTests/inspector/audit/basic-timeout.html</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsinspectorauditbasicexpectedtxt">trunk/LayoutTests/inspector/audit/basic-expected.txt</a></li>
<li><a href="#trunkLayoutTestsinspectorauditbasichtml">trunk/LayoutTests/inspector/audit/basic.html</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (245256 => 245257)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog      2019-05-13 22:07:52 UTC (rev 245256)
+++ trunk/LayoutTests/ChangeLog 2019-05-13 22:16:55 UTC (rev 245257)
</span><span class="lines">@@ -1,5 +1,38 @@
</span><span class="cx"> 2019-05-13  Devin Rousso  <drousso@apple.com>
</span><span class="cx"> 
</span><ins>+        [ Mac Debug ] Layout Test inspector/audit/basic.html is a flaky timeout on bots
+        https://bugs.webkit.org/show_bug.cgi?id=196448
+        <rdar://problem/49485452>
+
+        Reviewed by Alex Christensen.
+
+        Split inspector/audit/basic.html into separate tests so each part can run without timing out.
+
+        * inspector/audit/basic-async.html: Added.
+        * inspector/audit/basic-async-expected.txt: Added.
+        * inspector/audit/basic-boolean.html: Added.
+        * inspector/audit/basic-boolean-expected.txt: Added.
+        * inspector/audit/basic-debugger.html: Added.
+        * inspector/audit/basic-debugger-expected.txt: Added.
+        * inspector/audit/basic-error.html: Added.
+        * inspector/audit/basic-error-expected.txt: Added.
+        * inspector/audit/basic-object.html: Added.
+        * inspector/audit/basic-object-expected.txt: Added.
+        * inspector/audit/basic-promise.html: Added.
+        * inspector/audit/basic-promise-expected.txt: Added.
+        * inspector/audit/basic-string.html: Added.
+        * inspector/audit/basic-string-expected.txt: Added.
+        * inspector/audit/basic-timeout.html: Added.
+        * inspector/audit/basic-timeout-expected.txt: Added.
+
+        * inspector/audit/basic.html: Removed.
+        * inspector/audit/basic-expected.txt: Removed.
+
+        * platform/mac-wk1/TestExpectations:
+        * platform/mac-wk2/TestExpectations:
+
+2019-05-13  Devin Rousso  <drousso@apple.com>
+
</ins><span class="cx">         [ Mac WK2 ] Layout Test js/dom/unhandled-promise-rejection-bindings-type-error.html is a flaky failure
</span><span class="cx">         https://bugs.webkit.org/show_bug.cgi?id=195969
</span><span class="cx">         <rdar://problem/49039441>
</span></span></pre></div>
<a id="trunkLayoutTestsinspectorauditbasicasyncexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/inspector/audit/basic-async-expected.txt (0 => 245257)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/audit/basic-async-expected.txt                               (rev 0)
+++ trunk/LayoutTests/inspector/audit/basic-async-expected.txt  2019-05-13 22:16:55 UTC (rev 245257)
</span><span class="lines">@@ -0,0 +1,16 @@
</span><ins>+Testing the basic functionality of audits.
+
+
+== Running test suite: Audit.Basic
+-- Running test case: Audit.Basic.Async.Boolean.True
+Testing value `true`...
+PASS: Result should be "pass".
+
+-- Running test case: Audit.Basic.Async.String.Pass
+Testing value `"pass"`...
+PASS: Result should be "pass".
+
+-- Running test case: Audit.Basic.Async.Object.Pass
+Testing value `{"level":"pass"}`...
+PASS: Result should be "pass".
+
</ins></span></pre></div>
<a id="trunkLayoutTestsinspectorauditbasicasynchtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/inspector/audit/basic-async.html (0 => 245257)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/audit/basic-async.html                               (rev 0)
+++ trunk/LayoutTests/inspector/audit/basic-async.html  2019-05-13 22:16:55 UTC (rev 245257)
</span><span class="lines">@@ -0,0 +1,27 @@
</span><ins>+<!DOCTYPE html>
+<html>
+<head>
+<script src="../../http/tests/inspector/resources/inspector-test.js"></script>
+<script src="resources/audit-utilities.js"></script>
+<script>
+if (window.internals)
+    window.internals.settings.setUnhandledPromiseRejectionToConsoleEnabled(false);
+
+function test()
+{
+    InspectorTest.debug();
+
+    let suite = InspectorTest.Audit.createSuite("Audit.Basic");
+
+    InspectorTest.Audit.addFunctionlessTest("Audit.Basic.Async.Boolean.True", true, WI.AuditTestCaseResult.Level.Pass, {async: true});
+    InspectorTest.Audit.addStringTest("Audit.Basic.Async.String.Pass", WI.AuditTestCaseResult.Level.Pass, WI.AuditTestCaseResult.Level.Pass, {async: true});
+    InspectorTest.Audit.addObjectTest("Audit.Basic.Async.Object.Pass", {level: WI.AuditTestCaseResult.Level.Pass}, WI.AuditTestCaseResult.Level.Pass, {async: true});
+
+    suite.runTestCasesAndFinish();
+}
+</script>
+</head>
+<body onload="runTest()">
+    <p>Testing the basic functionality of audits.</p>
+</body>
+</html>
</ins></span></pre></div>
<a id="trunkLayoutTestsinspectorauditbasicbooleanexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/inspector/audit/basic-boolean-expected.txt (0 => 245257)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/audit/basic-boolean-expected.txt                             (rev 0)
+++ trunk/LayoutTests/inspector/audit/basic-boolean-expected.txt        2019-05-13 22:16:55 UTC (rev 245257)
</span><span class="lines">@@ -0,0 +1,12 @@
</span><ins>+Testing the basic functionality of audits.
+
+
+== Running test suite: Audit.Basic
+-- Running test case: Audit.Basic.Boolean.True
+Testing value `true`...
+PASS: Result should be "pass".
+
+-- Running test case: Audit.Basic.Boolean.False
+Testing value `false`...
+PASS: Result should be "fail".
+
</ins></span></pre></div>
<a id="trunkLayoutTestsinspectorauditbasicbooleanhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/inspector/audit/basic-boolean.html (0 => 245257)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/audit/basic-boolean.html                             (rev 0)
+++ trunk/LayoutTests/inspector/audit/basic-boolean.html        2019-05-13 22:16:55 UTC (rev 245257)
</span><span class="lines">@@ -0,0 +1,26 @@
</span><ins>+<!DOCTYPE html>
+<html>
+<head>
+<script src="../../http/tests/inspector/resources/inspector-test.js"></script>
+<script src="resources/audit-utilities.js"></script>
+<script>
+if (window.internals)
+    window.internals.settings.setUnhandledPromiseRejectionToConsoleEnabled(false);
+
+function test()
+{
+    InspectorTest.debug();
+
+    let suite = InspectorTest.Audit.createSuite("Audit.Basic");
+
+    InspectorTest.Audit.addFunctionlessTest("Audit.Basic.Boolean.True", true, WI.AuditTestCaseResult.Level.Pass);
+    InspectorTest.Audit.addFunctionlessTest("Audit.Basic.Boolean.False", false, WI.AuditTestCaseResult.Level.Fail);
+
+    suite.runTestCasesAndFinish();
+}
+</script>
+</head>
+<body onload="runTest()">
+    <p>Testing the basic functionality of audits.</p>
+</body>
+</html>
</ins></span></pre></div>
<a id="trunkLayoutTestsinspectorauditbasicdebuggerexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/inspector/audit/basic-debugger-expected.txt (0 => 245257)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/audit/basic-debugger-expected.txt                            (rev 0)
+++ trunk/LayoutTests/inspector/audit/basic-debugger-expected.txt       2019-05-13 22:16:55 UTC (rev 245257)
</span><span class="lines">@@ -0,0 +1,9 @@
</span><ins>+Testing the basic functionality of audits.
+
+
+== Running test suite: Audit.Basic
+-- Running test case: Audit.Basic.Debugger
+Testing `debugger`...
+PASS: Should not pause on the debugger statement.
+PASS: Result should be "pass".
+
</ins></span></pre></div>
<a id="trunkLayoutTestsinspectorauditbasicdebuggerhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/inspector/audit/basic-debugger.html (0 => 245257)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/audit/basic-debugger.html                            (rev 0)
+++ trunk/LayoutTests/inspector/audit/basic-debugger.html       2019-05-13 22:16:55 UTC (rev 245257)
</span><span class="lines">@@ -0,0 +1,56 @@
</span><ins>+<!DOCTYPE html>
+<html>
+<head>
+<script src="../../http/tests/inspector/resources/inspector-test.js"></script>
+<script src="resources/audit-utilities.js"></script>
+<script>
+if (window.internals)
+    window.internals.settings.setUnhandledPromiseRejectionToConsoleEnabled(false);
+
+function test()
+{
+    InspectorTest.debug();
+
+    let suite = InspectorTest.Audit.createSuite("Audit.Basic");
+
+    suite.addTestCase({
+        name: "Audit.Basic.Debugger",
+        description: "Test that a debugger statement doesn't pause when running an audit.",
+        test(resolve, reject) {
+            const level = "pass";
+            let audit = new WI.AuditTestCase("Audit.Basic.Debugger", `function() { debugger; return "${level}"; }`);
+
+            let paused = false;
+            let pausedListener = WI.debuggerManager.singleFireEventListener(WI.DebuggerManager.Event.Paused, (event) => {
+                paused = true;
+
+                WI.debuggerManager.resume();
+            });
+
+            WI.auditManager.awaitEvent(WI.AuditManager.Event.TestCompleted).then((event) => {
+                InspectorTest.expectFalse(paused, "Should not pause on the debugger statement.");
+                WI.debuggerManager.removeEventListener(WI.DebuggerManager.Event.Paused, pausedListener);
+
+                let results = WI.auditManager.results.lastValue;
+                InspectorTest.assert(results.length === 1, "There should be 1 result.");
+
+                let result = results[0];
+                InspectorTest.assert(result instanceof WI.AuditTestCaseResult, "Result should be a WI.AuditTestCaseResult.");
+                InspectorTest.expectEqual(result.level, level, `Result should be "${level}".`);
+            });
+
+            InspectorTest.log("Testing `debugger`...");
+
+            WI.auditManager.start([audit])
+            .then(resolve, reject);
+        },
+    });
+
+    suite.runTestCasesAndFinish();
+}
+</script>
+</head>
+<body onload="runTest()">
+    <p>Testing the basic functionality of audits.</p>
+</body>
+</html>
</ins></span></pre></div>
<a id="trunkLayoutTestsinspectorauditbasicerrorexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/inspector/audit/basic-error-expected.txt (0 => 245257)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/audit/basic-error-expected.txt                               (rev 0)
+++ trunk/LayoutTests/inspector/audit/basic-error-expected.txt  2019-05-13 22:16:55 UTC (rev 245257)
</span><span class="lines">@@ -0,0 +1,52 @@
</span><ins>+Testing the basic functionality of audits.
+
+
+== Running test suite: Audit.Basic
+-- Running test case: Audit.Basic.Error.Undefined
+Testing value `undefined`...
+PASS: Result should be "error".
+  errors:
+   - Return value is not an object, string, or boolean
+
+-- Running test case: Audit.Basic.Error.Null
+Testing value `null`...
+PASS: Result should be "error".
+  errors:
+   - Return value is not an object, string, or boolean
+
+-- Running test case: Audit.Basic.Error.Number
+Testing value `42`...
+PASS: Result should be "error".
+  errors:
+   - Return value is not an object, string, or boolean
+
+-- Running test case: Audit.Basic.Error.String
+Testing value `"foo"`...
+PASS: Result should be "error".
+  errors:
+   - Return string must be one of ["pass","warn","fail","error","unsupported"]
+
+-- Running test case: Audit.Basic.Error.Object
+Testing value `{}`...
+PASS: Result should be "error".
+  errors:
+   - Missing result level
+
+-- Running test case: Audit.Basic.Error.Variable
+Testing value `INVALID`...
+PASS: Result should be "error".
+  errors:
+   - ReferenceError: Can't find variable: INVALID
+
+-- Running test case: Audit.Basic.Error.Promise.Resolved
+Testing value `new Promise((resolve, reject) => setTimeout(resolve, 0))`...
+PASS: Result should be "error".
+  errors:
+   - Return value is not an object, string, or boolean
+
+-- Running test case: Audit.Basic.Error.Promise.Rejected
+Testing value `new Promise((resolve, reject) => setTimeout(reject, 0, "rejected"))`...
+PASS: Result should be "error".
+  errors:
+   - rejected
+
</ins></span></pre></div>
<a id="trunkLayoutTestsinspectorauditbasicerrorhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/inspector/audit/basic-error.html (0 => 245257)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/audit/basic-error.html                               (rev 0)
+++ trunk/LayoutTests/inspector/audit/basic-error.html  2019-05-13 22:16:55 UTC (rev 245257)
</span><span class="lines">@@ -0,0 +1,32 @@
</span><ins>+<!DOCTYPE html>
+<html>
+<head>
+<script src="../../http/tests/inspector/resources/inspector-test.js"></script>
+<script src="resources/audit-utilities.js"></script>
+<script>
+if (window.internals)
+    window.internals.settings.setUnhandledPromiseRejectionToConsoleEnabled(false);
+
+function test()
+{
+    InspectorTest.debug();
+
+    let suite = InspectorTest.Audit.createSuite("Audit.Basic");
+
+    InspectorTest.Audit.addFunctionlessTest("Audit.Basic.Error.Undefined", undefined, WI.AuditTestCaseResult.Level.Error);
+    InspectorTest.Audit.addFunctionlessTest("Audit.Basic.Error.Null", null, WI.AuditTestCaseResult.Level.Error);
+    InspectorTest.Audit.addFunctionlessTest("Audit.Basic.Error.Number", 42, WI.AuditTestCaseResult.Level.Error);
+    InspectorTest.Audit.addStringTest("Audit.Basic.Error.String", "foo", WI.AuditTestCaseResult.Level.Error);
+    InspectorTest.Audit.addObjectTest("Audit.Basic.Error.Object", {}, WI.AuditTestCaseResult.Level.Error);
+    InspectorTest.Audit.addFunctionlessTest("Audit.Basic.Error.Variable", "INVALID", WI.AuditTestCaseResult.Level.Error);
+    InspectorTest.Audit.addPromiseTest("Audit.Basic.Error.Promise.Resolved", `setTimeout(resolve, 0)`, WI.AuditTestCaseResult.Level.Error);
+    InspectorTest.Audit.addPromiseTest("Audit.Basic.Error.Promise.Rejected", `setTimeout(reject, 0, "rejected")`, WI.AuditTestCaseResult.Level.Error);
+
+    suite.runTestCasesAndFinish();
+}
+</script>
+</head>
+<body onload="runTest()">
+    <p>Testing the basic functionality of audits.</p>
+</body>
+</html>
</ins></span></pre></div>
<a id="trunkLayoutTestsinspectorauditbasicexpectedtxt"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/inspector/audit/basic-expected.txt (245256 => 245257)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/audit/basic-expected.txt     2019-05-13 22:07:52 UTC (rev 245256)
+++ trunk/LayoutTests/inspector/audit/basic-expected.txt        2019-05-13 22:16:55 UTC (rev 245257)
</span><span class="lines">@@ -1,133 +0,0 @@
</span><del>-Testing the basic functionality of audits.
-
-
-== Running test suite: Audit.Basic
--- Running test case: Audit.Basic.Boolean.True
-Testing value `true`...
-PASS: Result should be "pass".
-
--- Running test case: Audit.Basic.Boolean.False
-Testing value `false`...
-PASS: Result should be "fail".
-
--- Running test case: Audit.Basic.String.Pass
-Testing value `"pass"`...
-PASS: Result should be "pass".
-
--- Running test case: Audit.Basic.String.Warn
-Testing value `"warn"`...
-PASS: Result should be "warn".
-
--- Running test case: Audit.Basic.String.Fail
-Testing value `"fail"`...
-PASS: Result should be "fail".
-
--- Running test case: Audit.Basic.String.Error
-Testing value `"error"`...
-PASS: Result should be "error".
-
--- Running test case: Audit.Basic.String.Unsupported
-Testing value `"unsupported"`...
-PASS: Result should be "unsupported".
-
--- Running test case: Audit.Basic.Object.Pass
-Testing value `{"level":"pass"}`...
-PASS: Result should be "pass".
-
--- Running test case: Audit.Basic.Object.Warn
-Testing value `{"level":"warn"}`...
-PASS: Result should be "warn".
-
--- Running test case: Audit.Basic.Object.Fail
-Testing value `{"level":"fail"}`...
-PASS: Result should be "fail".
-
--- Running test case: Audit.Basic.Object.Error
-Testing value `{"level":"error"}`...
-PASS: Result should be "error".
-
--- Running test case: Audit.Basic.Object.Unsupported
-Testing value `{"level":"unsupported"}`...
-PASS: Result should be "unsupported".
-
--- Running test case: Audit.Basic.Promise.Boolean.True
-Testing value `new Promise((resolve, reject) => resolve(true))`...
-PASS: Result should be "pass".
-
--- Running test case: Audit.Basic.Promise.String.Pass
-Testing value `new Promise((resolve, reject) => resolve("pass"))`...
-PASS: Result should be "pass".
-
--- Running test case: Audit.Basic.Promise.Object.Pass
-Testing value `new Promise((resolve, reject) => resolve({level: "pass"}))`...
-PASS: Result should be "pass".
-
--- Running test case: Audit.Basic.Async.Boolean.True
-Testing value `true`...
-PASS: Result should be "pass".
-
--- Running test case: Audit.Basic.Async.String.Pass
-Testing value `"pass"`...
-PASS: Result should be "pass".
-
--- Running test case: Audit.Basic.Async.Object.Pass
-Testing value `{"level":"pass"}`...
-PASS: Result should be "pass".
-
--- Running test case: Audit.Basic.Timeout.Pass
-Testing value `new Promise((resolve, reject) => setTimeout(resolve, 0, "pass"))`...
-PASS: Result should be "pass".
-
--- Running test case: Audit.Basic.Error.Undefined
-Testing value `undefined`...
-PASS: Result should be "error".
-  errors:
-   - Return value is not an object, string, or boolean
-
--- Running test case: Audit.Basic.Error.Null
-Testing value `null`...
-PASS: Result should be "error".
-  errors:
-   - Return value is not an object, string, or boolean
-
--- Running test case: Audit.Basic.Error.Number
-Testing value `42`...
-PASS: Result should be "error".
-  errors:
-   - Return value is not an object, string, or boolean
-
--- Running test case: Audit.Basic.Error.String
-Testing value `"foo"`...
-PASS: Result should be "error".
-  errors:
-   - Return string must be one of ["pass","warn","fail","error","unsupported"]
-
--- Running test case: Audit.Basic.Error.Object
-Testing value `{}`...
-PASS: Result should be "error".
-  errors:
-   - Missing result level
-
--- Running test case: Audit.Basic.Error.Variable
-Testing value `INVALID`...
-PASS: Result should be "error".
-  errors:
-   - ReferenceError: Can't find variable: INVALID
-
--- Running test case: Audit.Basic.Error.Promise.Resolved
-Testing value `new Promise((resolve, reject) => setTimeout(resolve, 0))`...
-PASS: Result should be "error".
-  errors:
-   - Return value is not an object, string, or boolean
-
--- Running test case: Audit.Basic.Error.Promise.Rejected
-Testing value `new Promise((resolve, reject) => setTimeout(reject, 0, "rejected"))`...
-PASS: Result should be "error".
-  errors:
-   - rejected
-
--- Running test case: Audit.Basic.Debugger
-Testing `debugger`...
-PASS: Should not pause on the debugger statement.
-PASS: Result should be "pass".
-
</del></span></pre></div>
<a id="trunkLayoutTestsinspectorauditbasicobjectexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/inspector/audit/basic-object-expected.txt (0 => 245257)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/audit/basic-object-expected.txt                              (rev 0)
+++ trunk/LayoutTests/inspector/audit/basic-object-expected.txt 2019-05-13 22:16:55 UTC (rev 245257)
</span><span class="lines">@@ -0,0 +1,24 @@
</span><ins>+Testing the basic functionality of audits.
+
+
+== Running test suite: Audit.Basic
+-- Running test case: Audit.Basic.Object.Pass
+Testing value `{"level":"pass"}`...
+PASS: Result should be "pass".
+
+-- Running test case: Audit.Basic.Object.Warn
+Testing value `{"level":"warn"}`...
+PASS: Result should be "warn".
+
+-- Running test case: Audit.Basic.Object.Fail
+Testing value `{"level":"fail"}`...
+PASS: Result should be "fail".
+
+-- Running test case: Audit.Basic.Object.Error
+Testing value `{"level":"error"}`...
+PASS: Result should be "error".
+
+-- Running test case: Audit.Basic.Object.Unsupported
+Testing value `{"level":"unsupported"}`...
+PASS: Result should be "unsupported".
+
</ins></span></pre></div>
<a id="trunkLayoutTestsinspectorauditbasicobjecthtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/inspector/audit/basic-object.html (0 => 245257)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/audit/basic-object.html                              (rev 0)
+++ trunk/LayoutTests/inspector/audit/basic-object.html 2019-05-13 22:16:55 UTC (rev 245257)
</span><span class="lines">@@ -0,0 +1,29 @@
</span><ins>+<!DOCTYPE html>
+<html>
+<head>
+<script src="../../http/tests/inspector/resources/inspector-test.js"></script>
+<script src="resources/audit-utilities.js"></script>
+<script>
+if (window.internals)
+    window.internals.settings.setUnhandledPromiseRejectionToConsoleEnabled(false);
+
+function test()
+{
+    InspectorTest.debug();
+
+    let suite = InspectorTest.Audit.createSuite("Audit.Basic");
+
+    InspectorTest.Audit.addObjectTest("Audit.Basic.Object.Pass", {level: WI.AuditTestCaseResult.Level.Pass}, WI.AuditTestCaseResult.Level.Pass);
+    InspectorTest.Audit.addObjectTest("Audit.Basic.Object.Warn", {level: WI.AuditTestCaseResult.Level.Warn}, WI.AuditTestCaseResult.Level.Warn);
+    InspectorTest.Audit.addObjectTest("Audit.Basic.Object.Fail", {level: WI.AuditTestCaseResult.Level.Fail}, WI.AuditTestCaseResult.Level.Fail);
+    InspectorTest.Audit.addObjectTest("Audit.Basic.Object.Error", {level: WI.AuditTestCaseResult.Level.Error}, WI.AuditTestCaseResult.Level.Error);
+    InspectorTest.Audit.addObjectTest("Audit.Basic.Object.Unsupported", {level: WI.AuditTestCaseResult.Level.Unsupported}, WI.AuditTestCaseResult.Level.Unsupported);
+
+    suite.runTestCasesAndFinish();
+}
+</script>
+</head>
+<body onload="runTest()">
+    <p>Testing the basic functionality of audits.</p>
+</body>
+</html>
</ins></span></pre></div>
<a id="trunkLayoutTestsinspectorauditbasicpromiseexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/inspector/audit/basic-promise-expected.txt (0 => 245257)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/audit/basic-promise-expected.txt                             (rev 0)
+++ trunk/LayoutTests/inspector/audit/basic-promise-expected.txt        2019-05-13 22:16:55 UTC (rev 245257)
</span><span class="lines">@@ -0,0 +1,16 @@
</span><ins>+Testing the basic functionality of audits.
+
+
+== Running test suite: Audit.Basic
+-- Running test case: Audit.Basic.Promise.Boolean.True
+Testing value `new Promise((resolve, reject) => resolve(true))`...
+PASS: Result should be "pass".
+
+-- Running test case: Audit.Basic.Promise.String.Pass
+Testing value `new Promise((resolve, reject) => resolve("pass"))`...
+PASS: Result should be "pass".
+
+-- Running test case: Audit.Basic.Promise.Object.Pass
+Testing value `new Promise((resolve, reject) => resolve({level: "pass"}))`...
+PASS: Result should be "pass".
+
</ins></span></pre></div>
<a id="trunkLayoutTestsinspectorauditbasicpromisehtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/inspector/audit/basic-promise.html (0 => 245257)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/audit/basic-promise.html                             (rev 0)
+++ trunk/LayoutTests/inspector/audit/basic-promise.html        2019-05-13 22:16:55 UTC (rev 245257)
</span><span class="lines">@@ -0,0 +1,27 @@
</span><ins>+<!DOCTYPE html>
+<html>
+<head>
+<script src="../../http/tests/inspector/resources/inspector-test.js"></script>
+<script src="resources/audit-utilities.js"></script>
+<script>
+if (window.internals)
+    window.internals.settings.setUnhandledPromiseRejectionToConsoleEnabled(false);
+
+function test()
+{
+    InspectorTest.debug();
+
+    let suite = InspectorTest.Audit.createSuite("Audit.Basic");
+
+    InspectorTest.Audit.addPromiseTest("Audit.Basic.Promise.Boolean.True", `resolve(true)`, WI.AuditTestCaseResult.Level.Pass);
+    InspectorTest.Audit.addPromiseTest("Audit.Basic.Promise.String.Pass", `resolve("${WI.AuditTestCaseResult.Level.Pass}")`, WI.AuditTestCaseResult.Level.Pass);
+    InspectorTest.Audit.addPromiseTest("Audit.Basic.Promise.Object.Pass", `resolve({level: "${WI.AuditTestCaseResult.Level.Pass}"})`, WI.AuditTestCaseResult.Level.Pass);
+
+    suite.runTestCasesAndFinish();
+}
+</script>
+</head>
+<body onload="runTest()">
+    <p>Testing the basic functionality of audits.</p>
+</body>
+</html>
</ins></span></pre></div>
<a id="trunkLayoutTestsinspectorauditbasicstringexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/inspector/audit/basic-string-expected.txt (0 => 245257)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/audit/basic-string-expected.txt                              (rev 0)
+++ trunk/LayoutTests/inspector/audit/basic-string-expected.txt 2019-05-13 22:16:55 UTC (rev 245257)
</span><span class="lines">@@ -0,0 +1,24 @@
</span><ins>+Testing the basic functionality of audits.
+
+
+== Running test suite: Audit.Basic
+-- Running test case: Audit.Basic.String.Pass
+Testing value `"pass"`...
+PASS: Result should be "pass".
+
+-- Running test case: Audit.Basic.String.Warn
+Testing value `"warn"`...
+PASS: Result should be "warn".
+
+-- Running test case: Audit.Basic.String.Fail
+Testing value `"fail"`...
+PASS: Result should be "fail".
+
+-- Running test case: Audit.Basic.String.Error
+Testing value `"error"`...
+PASS: Result should be "error".
+
+-- Running test case: Audit.Basic.String.Unsupported
+Testing value `"unsupported"`...
+PASS: Result should be "unsupported".
+
</ins></span></pre></div>
<a id="trunkLayoutTestsinspectorauditbasicstringhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/inspector/audit/basic-string.html (0 => 245257)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/audit/basic-string.html                              (rev 0)
+++ trunk/LayoutTests/inspector/audit/basic-string.html 2019-05-13 22:16:55 UTC (rev 245257)
</span><span class="lines">@@ -0,0 +1,29 @@
</span><ins>+<!DOCTYPE html>
+<html>
+<head>
+<script src="../../http/tests/inspector/resources/inspector-test.js"></script>
+<script src="resources/audit-utilities.js"></script>
+<script>
+if (window.internals)
+    window.internals.settings.setUnhandledPromiseRejectionToConsoleEnabled(false);
+
+function test()
+{
+    InspectorTest.debug();
+
+    let suite = InspectorTest.Audit.createSuite("Audit.Basic");
+
+    InspectorTest.Audit.addStringTest("Audit.Basic.String.Pass", WI.AuditTestCaseResult.Level.Pass, WI.AuditTestCaseResult.Level.Pass);
+    InspectorTest.Audit.addStringTest("Audit.Basic.String.Warn", WI.AuditTestCaseResult.Level.Warn, WI.AuditTestCaseResult.Level.Warn);
+    InspectorTest.Audit.addStringTest("Audit.Basic.String.Fail", WI.AuditTestCaseResult.Level.Fail, WI.AuditTestCaseResult.Level.Fail);
+    InspectorTest.Audit.addStringTest("Audit.Basic.String.Error", WI.AuditTestCaseResult.Level.Error, WI.AuditTestCaseResult.Level.Error);
+    InspectorTest.Audit.addStringTest("Audit.Basic.String.Unsupported", WI.AuditTestCaseResult.Level.Unsupported, WI.AuditTestCaseResult.Level.Unsupported);
+
+    suite.runTestCasesAndFinish();
+}
+</script>
+</head>
+<body onload="runTest()">
+    <p>Testing the basic functionality of audits.</p>
+</body>
+</html>
</ins></span></pre></div>
<a id="trunkLayoutTestsinspectorauditbasictimeoutexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/inspector/audit/basic-timeout-expected.txt (0 => 245257)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/audit/basic-timeout-expected.txt                             (rev 0)
+++ trunk/LayoutTests/inspector/audit/basic-timeout-expected.txt        2019-05-13 22:16:55 UTC (rev 245257)
</span><span class="lines">@@ -0,0 +1,8 @@
</span><ins>+Testing the basic functionality of audits.
+
+
+== Running test suite: Audit.Basic
+-- Running test case: Audit.Basic.Timeout.Pass
+Testing value `new Promise((resolve, reject) => setTimeout(resolve, 0, "pass"))`...
+PASS: Result should be "pass".
+
</ins></span></pre></div>
<a id="trunkLayoutTestsinspectorauditbasictimeouthtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/inspector/audit/basic-timeout.html (0 => 245257)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/audit/basic-timeout.html                             (rev 0)
+++ trunk/LayoutTests/inspector/audit/basic-timeout.html        2019-05-13 22:16:55 UTC (rev 245257)
</span><span class="lines">@@ -0,0 +1,25 @@
</span><ins>+<!DOCTYPE html>
+<html>
+<head>
+<script src="../../http/tests/inspector/resources/inspector-test.js"></script>
+<script src="resources/audit-utilities.js"></script>
+<script>
+if (window.internals)
+    window.internals.settings.setUnhandledPromiseRejectionToConsoleEnabled(false);
+
+function test()
+{
+    InspectorTest.debug();
+
+    let suite = InspectorTest.Audit.createSuite("Audit.Basic");
+
+    InspectorTest.Audit.addPromiseTest("Audit.Basic.Timeout.Pass", `setTimeout(resolve, 0, "${WI.AuditTestCaseResult.Level.Pass}")`, WI.AuditTestCaseResult.Level.Pass);
+
+    suite.runTestCasesAndFinish();
+}
+</script>
+</head>
+<body onload="runTest()">
+    <p>Testing the basic functionality of audits.</p>
+</body>
+</html>
</ins></span></pre></div>
<a id="trunkLayoutTestsinspectorauditbasichtml"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/inspector/audit/basic.html (245256 => 245257)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/audit/basic.html     2019-05-13 22:07:52 UTC (rev 245256)
+++ trunk/LayoutTests/inspector/audit/basic.html        2019-05-13 22:16:55 UTC (rev 245257)
</span><span class="lines">@@ -1,92 +0,0 @@
</span><del>-<!DOCTYPE html>
-<html>
-<head>
-<script src="../../http/tests/inspector/resources/inspector-test.js"></script>
-<script src="resources/audit-utilities.js"></script>
-<script>
-if (window.internals)
-    window.internals.settings.setUnhandledPromiseRejectionToConsoleEnabled(false);
-
-function test()
-{
-    let suite = InspectorTest.Audit.createSuite("Audit.Basic");
-
-    InspectorTest.Audit.addFunctionlessTest("Audit.Basic.Boolean.True", true, WI.AuditTestCaseResult.Level.Pass);
-    InspectorTest.Audit.addFunctionlessTest("Audit.Basic.Boolean.False", false, WI.AuditTestCaseResult.Level.Fail);
-
-    InspectorTest.Audit.addStringTest("Audit.Basic.String.Pass", WI.AuditTestCaseResult.Level.Pass, WI.AuditTestCaseResult.Level.Pass);
-    InspectorTest.Audit.addStringTest("Audit.Basic.String.Warn", WI.AuditTestCaseResult.Level.Warn, WI.AuditTestCaseResult.Level.Warn);
-    InspectorTest.Audit.addStringTest("Audit.Basic.String.Fail", WI.AuditTestCaseResult.Level.Fail, WI.AuditTestCaseResult.Level.Fail);
-    InspectorTest.Audit.addStringTest("Audit.Basic.String.Error", WI.AuditTestCaseResult.Level.Error, WI.AuditTestCaseResult.Level.Error);
-    InspectorTest.Audit.addStringTest("Audit.Basic.String.Unsupported", WI.AuditTestCaseResult.Level.Unsupported, WI.AuditTestCaseResult.Level.Unsupported);
-
-    InspectorTest.Audit.addObjectTest("Audit.Basic.Object.Pass", {level: WI.AuditTestCaseResult.Level.Pass}, WI.AuditTestCaseResult.Level.Pass);
-    InspectorTest.Audit.addObjectTest("Audit.Basic.Object.Warn", {level: WI.AuditTestCaseResult.Level.Warn}, WI.AuditTestCaseResult.Level.Warn);
-    InspectorTest.Audit.addObjectTest("Audit.Basic.Object.Fail", {level: WI.AuditTestCaseResult.Level.Fail}, WI.AuditTestCaseResult.Level.Fail);
-    InspectorTest.Audit.addObjectTest("Audit.Basic.Object.Error", {level: WI.AuditTestCaseResult.Level.Error}, WI.AuditTestCaseResult.Level.Error);
-    InspectorTest.Audit.addObjectTest("Audit.Basic.Object.Unsupported", {level: WI.AuditTestCaseResult.Level.Unsupported}, WI.AuditTestCaseResult.Level.Unsupported);
-
-    InspectorTest.Audit.addPromiseTest("Audit.Basic.Promise.Boolean.True", `resolve(true)`, WI.AuditTestCaseResult.Level.Pass);
-    InspectorTest.Audit.addPromiseTest("Audit.Basic.Promise.String.Pass", `resolve("${WI.AuditTestCaseResult.Level.Pass}")`, WI.AuditTestCaseResult.Level.Pass);
-    InspectorTest.Audit.addPromiseTest("Audit.Basic.Promise.Object.Pass", `resolve({level: "${WI.AuditTestCaseResult.Level.Pass}"})`, WI.AuditTestCaseResult.Level.Pass);
-
-    InspectorTest.Audit.addFunctionlessTest("Audit.Basic.Async.Boolean.True", true, WI.AuditTestCaseResult.Level.Pass, {async: true});
-    InspectorTest.Audit.addStringTest("Audit.Basic.Async.String.Pass", WI.AuditTestCaseResult.Level.Pass, WI.AuditTestCaseResult.Level.Pass, {async: true});
-    InspectorTest.Audit.addObjectTest("Audit.Basic.Async.Object.Pass", {level: WI.AuditTestCaseResult.Level.Pass}, WI.AuditTestCaseResult.Level.Pass, {async: true});
-
-    InspectorTest.Audit.addPromiseTest("Audit.Basic.Timeout.Pass", `setTimeout(resolve, 0, "${WI.AuditTestCaseResult.Level.Pass}")`, WI.AuditTestCaseResult.Level.Pass);
-
-    InspectorTest.Audit.addFunctionlessTest("Audit.Basic.Error.Undefined", undefined, WI.AuditTestCaseResult.Level.Error);
-    InspectorTest.Audit.addFunctionlessTest("Audit.Basic.Error.Null", null, WI.AuditTestCaseResult.Level.Error);
-    InspectorTest.Audit.addFunctionlessTest("Audit.Basic.Error.Number", 42, WI.AuditTestCaseResult.Level.Error);
-    InspectorTest.Audit.addStringTest("Audit.Basic.Error.String", "foo", WI.AuditTestCaseResult.Level.Error);
-    InspectorTest.Audit.addObjectTest("Audit.Basic.Error.Object", {}, WI.AuditTestCaseResult.Level.Error);
-    InspectorTest.Audit.addFunctionlessTest("Audit.Basic.Error.Variable", "INVALID", WI.AuditTestCaseResult.Level.Error);
-    InspectorTest.Audit.addPromiseTest("Audit.Basic.Error.Promise.Resolved", `setTimeout(resolve, 0)`, WI.AuditTestCaseResult.Level.Error);
-    InspectorTest.Audit.addPromiseTest("Audit.Basic.Error.Promise.Rejected", `setTimeout(reject, 0, "rejected")`, WI.AuditTestCaseResult.Level.Error);
-
-    suite.addTestCase({
-        name: "Audit.Basic.Debugger",
-        description: "Test that a debugger statement doesn't pause when running an audit.",
-        test(resolve, reject) {
-            const level = "pass";
-            let audit = new WI.AuditTestCase("Audit.Basic.Debugger", `function() { debugger; return "${level}"; }`);
-
-            let paused = false;
-            let pausedListener = WI.debuggerManager.singleFireEventListener(WI.DebuggerManager.Event.Paused, (event) => {
-                paused = true;
-
-                WI.debuggerManager.resume();
-            });
-
-            WI.auditManager.awaitEvent(WI.AuditManager.Event.TestCompleted).then((event) => {
-                InspectorTest.expectFalse(paused, "Should not pause on the debugger statement.");
-
-                let results = WI.auditManager.results.lastValue;
-                InspectorTest.assert(results.length === 1, "There should be 1 result.");
-
-                let result = results[0];
-                InspectorTest.assert(result instanceof WI.AuditTestCaseResult, "Result should be a WI.AuditTestCaseResult.");
-                if (!result)
-                    return;
-
-                InspectorTest.expectEqual(result.level, level, `Result should be "${level}".`);
-
-                WI.debuggerManager.removeEventListener(WI.DebuggerManager.Event.Paused, pausedListener);
-            });
-
-            InspectorTest.log("Testing `debugger`...");
-
-            WI.auditManager.start([audit])
-            .then(resolve, reject);
-        },
-    });
-
-    suite.runTestCasesAndFinish();
-}
-</script>
-</head>
-<body onload="runTest()">
-    <p>Testing the basic functionality of audits.</p>
-</body>
-</html>
</del></span></pre></div>
<a id="trunkLayoutTestsplatformmacwk1TestExpectations"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac-wk1/TestExpectations (245256 => 245257)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-wk1/TestExpectations      2019-05-13 22:07:52 UTC (rev 245256)
+++ trunk/LayoutTests/platform/mac-wk1/TestExpectations 2019-05-13 22:16:55 UTC (rev 245257)
</span><span class="lines">@@ -693,8 +693,6 @@
</span><span class="cx"> webkit.org/b/195098 pointerevents/mouse/pointer-capture.html [ Failure ]
</span><span class="cx"> webkit.org/b/195098 pointerevents/mouse/pointer-events-before-mouse-events.html [ Failure ]
</span><span class="cx"> 
</span><del>-webkit.org/b/196448 [ Debug ] inspector/audit/basic.html [ Pass Timeout ]
-
</del><span class="cx"> webkit.org/b/196502 media/video-background-tab-playback.html [ Pass Failure ]
</span><span class="cx"> 
</span><span class="cx"> webkit.org/b/196915 [ Debug ] inspector/timeline/timeline-recording.html [ Pass Failure ]
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmacwk2TestExpectations"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac-wk2/TestExpectations (245256 => 245257)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-wk2/TestExpectations      2019-05-13 22:07:52 UTC (rev 245256)
+++ trunk/LayoutTests/platform/mac-wk2/TestExpectations 2019-05-13 22:16:55 UTC (rev 245257)
</span><span class="lines">@@ -929,8 +929,6 @@
</span><span class="cx"> 
</span><span class="cx"> webkit.org/b/187391 accessibility/mac/async-increment-decrement-action.html [ Skip ]
</span><span class="cx"> 
</span><del>-webkit.org/b/196448 [ Debug ] inspector/audit/basic.html [ Pass Timeout ]
-
</del><span class="cx"> webkit.org/b/194164 http/tests/storageAccess/request-and-grant-access-cross-origin-sandboxed-iframe-from-prevalent-domain-with-user-interaction-but-access-from-wrong-frame.html [ Pass Timeout ]
</span><span class="cx"> 
</span><span class="cx"> webkit.org/b/197068 [ Debug ] fast/selectors/matches-backtracking.html [ Pass Timeout ]
</span></span></pre>
</div>
</div>

</body>
</html>