Title: [202740] trunk/LayoutTests
Revision
202740
Author
[email protected]
Date
2016-07-01 10:00:48 -0700 (Fri, 01 Jul 2016)

Log Message

Web Inspector: Cleanup inspector/console/console-message.html
https://bugs.webkit.org/show_bug.cgi?id=159324

Patch by Joseph Pecoraro <[email protected]> on 2016-07-01
Reviewed by Brian Burg.

* inspector/console/console-message.html:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (202739 => 202740)


--- trunk/LayoutTests/ChangeLog	2016-07-01 16:43:02 UTC (rev 202739)
+++ trunk/LayoutTests/ChangeLog	2016-07-01 17:00:48 UTC (rev 202740)
@@ -1,3 +1,12 @@
+2016-07-01  Joseph Pecoraro  <[email protected]>
+
+        Web Inspector: Cleanup inspector/console/console-message.html
+        https://bugs.webkit.org/show_bug.cgi?id=159324
+
+        Reviewed by Brian Burg.
+
+        * inspector/console/console-message.html:
+
 2016-07-01  Frederic Wang  <[email protected]>
 
         Rebaseline opentype-stretchy-horizontal.html for EFL.

Modified: trunk/LayoutTests/inspector/console/console-message-expected.txt (202739 => 202740)


--- trunk/LayoutTests/inspector/console/console-message-expected.txt	2016-07-01 16:43:02 UTC (rev 202739)
+++ trunk/LayoutTests/inspector/console/console-message-expected.txt	2016-07-01 17:00:48 UTC (rev 202740)
@@ -3,8 +3,9 @@
 CONSOLE MESSAGE: line 1: warn
 CONSOLE MESSAGE: line 1: error
 CONSOLE MESSAGE: line 1: debug
-Tests that console.log and related APIs cause Console.messageAdded events to be generated with correct source, type, level, and parameter types. 
+Tests that console.log and related APIs cause Console.messageAdded events to be generated with correct source, type, level, and parameter types.
 
+
 == Running test suite: Console.MessagesFromCommandLineAPI
 -- Running test case: ConsoleLogString
 Evaluating _expression_: console.log("log");

Modified: trunk/LayoutTests/inspector/console/console-message.html (202739 => 202740)


--- trunk/LayoutTests/inspector/console/console-message.html	2016-07-01 16:43:02 UTC (rev 202739)
+++ trunk/LayoutTests/inspector/console/console-message.html	2016-07-01 17:00:48 UTC (rev 202740)
@@ -1,23 +1,13 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
 <head>
 <script src=""
 <script src=""
 <script>
-function generateSimpleConsoleMessages()
-{
-    console.log("log");
-    console.info("info");
-    console.warn("warn");
-    console.error("error");
-    console.debug("debug");
-}
-
 function test()
 {
+    let suite = ProtocolTest.createAsyncSuite("Console.MessagesFromCommandLineAPI");
 
-    var suite = ProtocolTest.createAsyncSuite("Console.MessagesFromCommandLineAPI");
-
     ProtocolTest.Console.addTestCase(suite, {
         name: "ConsoleLogString",
         description: "Test `console.log(\"log\")`",
@@ -78,14 +68,9 @@
         }
     });
 
-    InspectorProtocol.awaitCommand({
-        method: "Console.enable",
-        params: {}
-    })
-    .then(function() {
-        suite.runTestCasesAndFinish();
-    })
-    .catch(fatalError);
+    InspectorProtocol.awaitCommand({method: "Console.enable", params: {}})
+        .then(() => { suite.runTestCasesAndFinish(); })
+        .catch(fatalError);
 
     function fatalError(e) {
         ProtocolTest.log("Test failed with fatal error: " + JSON.stringify(e));
@@ -95,9 +80,6 @@
 </script>
 </head>
 <body _onload_="runTest()">
-<p>
-Tests that <code>console.log</code> and related APIs cause <code>Console.messageAdded</code> events to be generated with correct source, type, level, and parameter types.
-<br>
-</p>
+<p>Tests that <code>console.log</code> and related APIs cause <code>Console.messageAdded</code> events to be generated with correct source, type, level, and parameter types.</p>
 </body>
 </html>
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to