summaryrefslogtreecommitdiffstats
path: root/content/browser/debugger/manual_tests/error-warning-count.html
diff options
context:
space:
mode:
authorjoi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-29 02:16:06 +0000
committerjoi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-29 02:16:06 +0000
commitb46442d7e2e8cccf5f9bcafb2e1e3b7cf23d424b (patch)
treee1e0f0d2fc3653d71e93b4cca71cce5ea2cb7223 /content/browser/debugger/manual_tests/error-warning-count.html
parent75a4e77f6c2c21706c09948269c45d98db28757b (diff)
downloadchromium_src-b46442d7e2e8cccf5f9bcafb2e1e3b7cf23d424b.zip
chromium_src-b46442d7e2e8cccf5f9bcafb2e1e3b7cf23d424b.tar.gz
chromium_src-b46442d7e2e8cccf5f9bcafb2e1e3b7cf23d424b.tar.bz2
Wholesale move of debugger sources to content.
Other references are modified only to point to the new location. Follow-up changes will move build rules for the debugger into content. This adds a somewhat permissive DEPS file to content/browser/debugger. Follow-up work will whittle that down to zero dependencies on chrome/. BUG=84078 TEST=existing Review URL: http://codereview.chromium.org/7274031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90912 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/debugger/manual_tests/error-warning-count.html')
-rw-r--r--content/browser/debugger/manual_tests/error-warning-count.html58
1 files changed, 58 insertions, 0 deletions
diff --git a/content/browser/debugger/manual_tests/error-warning-count.html b/content/browser/debugger/manual_tests/error-warning-count.html
new file mode 100644
index 0000000..3296742
--- /dev/null
+++ b/content/browser/debugger/manual_tests/error-warning-count.html
@@ -0,0 +1,58 @@
+<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>To begin test, open DevTools 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>