[SCM] WebKit Debian packaging branch, debian/experimental, updated. upstream/1.3.3-9427-gc2be6fc

yurys at chromium.org yurys at chromium.org
Wed Dec 22 14:17:35 UTC 2010


The following commit has been merged in the debian/experimental branch:
commit e08cb60b9eb9a1dc2d92df73f9c924542b1df4be
Author: yurys at chromium.org <yurys at chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Wed Oct 6 13:42:04 2010 +0000

    2010-10-06  Yury Semikhatsky  <yurys at chromium.org>
    
            Reviewed by Pavel Feldman.
    
            Web Inspector: test that uncaught exceptions have stack trace when inspector is open
            https://bugs.webkit.org/show_bug.cgi?id=47250
    
            * http/tests/inspector/console-tests2.js: Added.
            (initialize_ConsoleTest.InspectorTest.dumpConsoleMessages):
            (initialize_ConsoleTest.InspectorTest.expandConsoleMessages):
            (initialize_ConsoleTest):
            * inspector/console-uncaught-exception.html: Added.
            * platform/chromium/inspector/console-uncaught-exception-expected.txt: Added.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@69190 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog
index b8f4785..6c8afc4 100644
--- a/LayoutTests/ChangeLog
+++ b/LayoutTests/ChangeLog
@@ -1,3 +1,17 @@
+2010-10-06  Yury Semikhatsky  <yurys at chromium.org>
+
+        Reviewed by Pavel Feldman.
+
+        Web Inspector: test that uncaught exceptions have stack trace when inspector is open
+        https://bugs.webkit.org/show_bug.cgi?id=47250
+
+        * http/tests/inspector/console-tests2.js: Added.
+        (initialize_ConsoleTest.InspectorTest.dumpConsoleMessages):
+        (initialize_ConsoleTest.InspectorTest.expandConsoleMessages):
+        (initialize_ConsoleTest):
+        * inspector/console-uncaught-exception.html: Added.
+        * platform/chromium/inspector/console-uncaught-exception-expected.txt: Added.
+
 2010-10-06  Andrey Kosyakov  <caseq at chromium.org>
 
         Unreviewed. Rebased test expectations after r69185.
diff --git a/LayoutTests/http/tests/inspector/console-tests2.js b/LayoutTests/http/tests/inspector/console-tests2.js
new file mode 100755
index 0000000..3afd9c9
--- /dev/null
+++ b/LayoutTests/http/tests/inspector/console-tests2.js
@@ -0,0 +1,28 @@
+var initialize_ConsoleTest = function() {
+
+InspectorTest.dumpConsoleMessages = function()
+{
+    var result = [];
+    var messages = WebInspector.console.messages;
+    for (var i = 0; i < messages.length; ++i) {
+        var element = messages[i].toMessageElement();
+        InspectorTest.addResult(element.textContent.replace(/\u200b/g, ""));
+    }
+    return result;
+}
+
+InspectorTest.expandConsoleMessages = function()
+{
+    var messages = WebInspector.console.messages;
+    for (var i = 0; i < messages.length; ++i) {
+        var element = messages[i].toMessageElement();
+        var node = element;
+        while (node) {
+            if (node.treeElementForTest)
+                node.treeElementForTest.expand();
+            node = node.traverseNextNode(element);
+        }
+    }
+}
+
+}
\ No newline at end of file
diff --git a/LayoutTests/inspector/console-uncaught-exception.html b/LayoutTests/inspector/console-uncaught-exception.html
new file mode 100755
index 0000000..7c75ad3
--- /dev/null
+++ b/LayoutTests/inspector/console-uncaught-exception.html
@@ -0,0 +1,54 @@
+<html>
+<head>
+<script src="../http/tests/inspector/inspector-test2.js"></script>
+<script src="../http/tests/inspector/console-tests2.js"></script>
+<script>
+
+function test()
+{
+    InspectorTest.reloadPage(function() {
+        InspectorTest.expandConsoleMessages();
+        InspectorTest.dumpConsoleMessages();
+        InspectorTest.completeTest();
+    });
+}
+
+
+window.addEventListener("load", function(e) {
+    function f() {
+        throw new Error("Exception in 'load' event listener.")
+    }
+    f();
+}, false);
+
+
+setTimeout(function() {
+    function bar() {
+        throw new Error("Exception in setTimeout callback.");
+    }
+    bar();
+}, 0);
+
+
+function a()
+{
+    throw new Error("Exception in inline script.")
+}
+
+function b()
+{
+    a();
+}
+
+b();
+
+</script>
+</head>
+
+<body onload="runTest()">
+<p>
+Tests that uncaught exceptions are logged into console.<a href="https://bugs.webkit.org/show_bug.cgi?id=47250">Bug 47250.</a>
+</p>
+
+</body>
+</html>
diff --git a/LayoutTests/platform/chromium/inspector/console-uncaught-exception-expected.txt b/LayoutTests/platform/chromium/inspector/console-uncaught-exception-expected.txt
new file mode 100755
index 0000000..4d199f0
--- /dev/null
+++ b/LayoutTests/platform/chromium/inspector/console-uncaught-exception-expected.txt
@@ -0,0 +1,13 @@
+CONSOLE MESSAGE: line 35: Uncaught Error: Exception in inline script.

+CONSOLE MESSAGE: line 19: Uncaught Error: Exception in 'load' event listener.

+CONSOLE MESSAGE: line 27: Uncaught Error: Exception in setTimeout callback.

+CONSOLE MESSAGE: line 35: Uncaught Error: Exception in inline script.

+CONSOLE MESSAGE: line 19: Uncaught Error: Exception in 'load' event listener.

+CONSOLE MESSAGE: line 27: Uncaught Error: Exception in setTimeout callback.

+Tests that uncaught exceptions are logged into console.Bug 47250.

+

+Page reloaded.

+console-uncaught-exception.html:35Uncaught Error: Exception in inline script.aconsole-uncaught-exception.html:35bconsole-uncaught-exception.html:40(anonymous function)console-uncaught-exception.html:43

+console-uncaught-exception.html:19Uncaught Error: Exception in 'load' event listener.fconsole-uncaught-exception.html:19(anonymous function)console-uncaught-exception.html:21

+console-uncaught-exception.html:27Uncaught Error: Exception in setTimeout callback.barconsole-uncaught-exception.html:27(anonymous function)console-uncaught-exception.html:29

+


-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list