diff options
author | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-19 10:12:13 +0000 |
---|---|---|
committer | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-19 10:12:13 +0000 |
commit | 806d2c7ba4071ba14a19c9b7cae54dd85c995d33 (patch) | |
tree | 60b4a627cf877de3daca7115822807bb5f7e7bd3 /content/browser/debugger/manual_tests/error-warning-count.html | |
parent | 41a1c0d637eaccee61f3efc1d5edd4022181c0ba (diff) | |
download | chromium_src-806d2c7ba4071ba14a19c9b7cae54dd85c995d33.zip chromium_src-806d2c7ba4071ba14a19c9b7cae54dd85c995d33.tar.gz chromium_src-806d2c7ba4071ba14a19c9b7cae54dd85c995d33.tar.bz2 |
DevTools: rename debugger/ to devtools/, move DevTools files into content/renderer/devtools.
Review URL: https://codereview.chromium.org/11630004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173891 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.html | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/content/browser/debugger/manual_tests/error-warning-count.html b/content/browser/debugger/manual_tests/error-warning-count.html deleted file mode 100644 index 3296742..0000000 --- a/content/browser/debugger/manual_tests/error-warning-count.html +++ /dev/null @@ -1,58 +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>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> |