summaryrefslogtreecommitdiffstats
path: root/WebCore/manual-tests/inspector/error-warning-count.html
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2011-05-06 11:45:16 +0100
committerSteve Block <steveblock@google.com>2011-05-12 13:44:10 +0100
commitcad810f21b803229eb11403f9209855525a25d57 (patch)
tree29a6fd0279be608e0fe9ffe9841f722f0f4e4269 /WebCore/manual-tests/inspector/error-warning-count.html
parent121b0cf4517156d0ac5111caf9830c51b69bae8f (diff)
downloadexternal_webkit-cad810f21b803229eb11403f9209855525a25d57.zip
external_webkit-cad810f21b803229eb11403f9209855525a25d57.tar.gz
external_webkit-cad810f21b803229eb11403f9209855525a25d57.tar.bz2
Merge WebKit at r75315: Initial merge by git.
Change-Id: I570314b346ce101c935ed22a626b48c2af266b84
Diffstat (limited to 'WebCore/manual-tests/inspector/error-warning-count.html')
-rw-r--r--WebCore/manual-tests/inspector/error-warning-count.html60
1 files changed, 0 insertions, 60 deletions
diff --git a/WebCore/manual-tests/inspector/error-warning-count.html b/WebCore/manual-tests/inspector/error-warning-count.html
deleted file mode 100644
index 9f6b9c2..0000000
--- a/WebCore/manual-tests/inspector/error-warning-count.html
+++ /dev/null
@@ -1,60 +0,0 @@
-<script>
- function clickHandler(errors, warnings)
- {
- return function()
- {
- for (var i = 0; i < errors; ++i)
- console.error("Error " + (i + 1));
- for (var i = 0; i < warnings; ++i)
- console.warn("Warning " + (i + 1));
- }
- }
-
- function loaded()
- {
- var tests = [
- { errors: 0, warnings: 0 },
- { errors: 1, warnings: 0 },
- { errors: 2, warnings: 0 },
- { errors: 0, warnings: 1 },
- { errors: 0, warnings: 2 },
- { errors: 1, warnings: 1 },
- { errors: 1, warnings: 2 },
- { errors: 2, warnings: 1 },
- { errors: 2, warnings: 2 },
- { errors: 100, warnings: 100 },
- ];
-
- for (var i in tests) {
- var test = tests[i];
-
- var button = document.createElement("button");
- var content = "";
- if (!test.errors && !test.warnings)
- content = "(nothing)";
- else {
- if (test.errors > 0)
- content += test.errors + " error" + (test.errors != 1 ? "s" : "");
- if (test.warnings > 0) {
- if (content.length)
- content += ", ";
- content += test.warnings + " warning" + (test.warnings != 1 ? "s" : "")
- }
- }
- button.innerText = content;
- button.onclick = clickHandler(test.errors, test.warnings);
- var p = document.createElement("p");
- p.appendChild(button);
- document.body.appendChild(p);
- }
- }
-</script>
-<body onload="loaded()">
-<p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=18650">Bug 18650:
-Errors/warnings in Inspector should be visible outside of Resources</a>.</p>
-<p>To test, open the Inspector and click one of the buttons below. You should
-see an error and/or warning count in the Inspector's status bar. Clicking on
-the error/warning count should open the Console. Hovering over the
-error/warning count should show you a tooltip that matches the text in the
-button you clicked.</p>
-<p>Note: You must reload the page between each button press.</p>