From 1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353 Mon Sep 17 00:00:00 2001 From: The Android Open Source Project Date: Wed, 17 Dec 2008 18:05:15 -0800 Subject: Code drop from //branches/cupcake/...@124589 --- .../manual-tests/inspector/command-line-api.html | 6 ++ WebCore/manual-tests/inspector/console-assert.html | 37 ++++++++++ .../inspector/console-call-line-numbers.html | 14 ++++ .../inspector/console-log-formatting.html | 68 +++++++++++++++++ WebCore/manual-tests/inspector/console-time.html | 33 +++++++++ .../inspector/debugger-execution-while-paused.html | 15 ++++ .../inspector/debugger-pause-during-load.html | 5 ++ .../debugger-pause-on-else-statements.html | 18 +++++ .../debugger-pause-on-for-in-statements.html | 18 +++++ .../debugger-pause-on-for-statements.html | 16 ++++ .../debugger-status-bar-buttons-state.html | 2 + .../manual-tests/inspector/display-sql-null.html | 21 ++++++ .../inspector/display-sql-transaction-error.html | 24 ++++++ WebCore/manual-tests/inspector/dom-mutation.html | 31 ++++++++ .../inspector/error-warning-count.html | 60 +++++++++++++++ .../inspector/errors-with-space in-url.html | 7 ++ WebCore/manual-tests/inspector/escape-links.html | 1 + .../inspector/forzen-ui-while-paused.html | 11 +++ .../inspector/highlight-source-line.html | 4 + .../inspector/multiple-console-messages.html | 86 ++++++++++++++++++++++ .../manual-tests/inspector/profiler-test-call.html | 35 +++++++++ ...profiler-test-many-calls-in-the-same-scope.html | 42 +++++++++++ .../inspector/resources/mutate-frame-2.html | 12 +++ .../inspector/resources/mutate-frame.html | 10 +++ .../inspector/resources/script-console-calls.js | 8 ++ .../inspector/resources/script-error.js | 6 ++ .../manual-tests/inspector/returnEvent-crash.html | 17 +++++ .../inspector/styled-error-bubbles-in-scripts.html | 6 ++ 28 files changed, 613 insertions(+) create mode 100644 WebCore/manual-tests/inspector/command-line-api.html create mode 100644 WebCore/manual-tests/inspector/console-assert.html create mode 100644 WebCore/manual-tests/inspector/console-call-line-numbers.html create mode 100644 WebCore/manual-tests/inspector/console-log-formatting.html create mode 100644 WebCore/manual-tests/inspector/console-time.html create mode 100644 WebCore/manual-tests/inspector/debugger-execution-while-paused.html create mode 100644 WebCore/manual-tests/inspector/debugger-pause-during-load.html create mode 100644 WebCore/manual-tests/inspector/debugger-pause-on-else-statements.html create mode 100644 WebCore/manual-tests/inspector/debugger-pause-on-for-in-statements.html create mode 100644 WebCore/manual-tests/inspector/debugger-pause-on-for-statements.html create mode 100644 WebCore/manual-tests/inspector/debugger-status-bar-buttons-state.html create mode 100644 WebCore/manual-tests/inspector/display-sql-null.html create mode 100644 WebCore/manual-tests/inspector/display-sql-transaction-error.html create mode 100644 WebCore/manual-tests/inspector/dom-mutation.html create mode 100644 WebCore/manual-tests/inspector/error-warning-count.html create mode 100644 WebCore/manual-tests/inspector/errors-with-space in-url.html create mode 100644 WebCore/manual-tests/inspector/escape-links.html create mode 100644 WebCore/manual-tests/inspector/forzen-ui-while-paused.html create mode 100644 WebCore/manual-tests/inspector/highlight-source-line.html create mode 100644 WebCore/manual-tests/inspector/multiple-console-messages.html create mode 100644 WebCore/manual-tests/inspector/profiler-test-call.html create mode 100644 WebCore/manual-tests/inspector/profiler-test-many-calls-in-the-same-scope.html create mode 100644 WebCore/manual-tests/inspector/resources/mutate-frame-2.html create mode 100644 WebCore/manual-tests/inspector/resources/mutate-frame.html create mode 100644 WebCore/manual-tests/inspector/resources/script-console-calls.js create mode 100644 WebCore/manual-tests/inspector/resources/script-error.js create mode 100644 WebCore/manual-tests/inspector/returnEvent-crash.html create mode 100644 WebCore/manual-tests/inspector/styled-error-bubbles-in-scripts.html (limited to 'WebCore/manual-tests/inspector') diff --git a/WebCore/manual-tests/inspector/command-line-api.html b/WebCore/manual-tests/inspector/command-line-api.html new file mode 100644 index 0000000..8b9a153 --- /dev/null +++ b/WebCore/manual-tests/inspector/command-line-api.html @@ -0,0 +1,6 @@ + + +

Test for Bug 20385: Firebug command line extensions interfere with existing objects.

+

To test, execute "$()" in the Inspector's Console. Also trying setting $.

diff --git a/WebCore/manual-tests/inspector/console-assert.html b/WebCore/manual-tests/inspector/console-assert.html new file mode 100644 index 0000000..df2c4cc --- /dev/null +++ b/WebCore/manual-tests/inspector/console-assert.html @@ -0,0 +1,37 @@ + + +

Test for Bug 19134: Inspector should support console.assert.

+

To test, click the buttons below and look at the Inspector's Console.

diff --git a/WebCore/manual-tests/inspector/console-call-line-numbers.html b/WebCore/manual-tests/inspector/console-call-line-numbers.html new file mode 100644 index 0000000..ae831c5 --- /dev/null +++ b/WebCore/manual-tests/inspector/console-call-line-numbers.html @@ -0,0 +1,14 @@ + + + +

Test for Bug 17234: Inspector should link console.{log,warn,info,error} back to call site.

+

To test, open the Inspector's Console and verify that all console messages have correct resource URLs and line numbers. Also verify that errors and warnings show up inline as bubbles in the resource source view.

diff --git a/WebCore/manual-tests/inspector/console-log-formatting.html b/WebCore/manual-tests/inspector/console-log-formatting.html new file mode 100644 index 0000000..d59ebc9 --- /dev/null +++ b/WebCore/manual-tests/inspector/console-log-formatting.html @@ -0,0 +1,68 @@ + +

Test for Bug 17228: console.{log,warn,info,error} should support format strings, variable arguments.

+

Open the Inspector (right-click and choose "Inspect Element"), then click the "Run Tests" button.

+ diff --git a/WebCore/manual-tests/inspector/console-time.html b/WebCore/manual-tests/inspector/console-time.html new file mode 100644 index 0000000..6c24373 --- /dev/null +++ b/WebCore/manual-tests/inspector/console-time.html @@ -0,0 +1,33 @@ + +

Test for Bug 19159: Inspector should support console.time/console.timeEnd.

+

Open the Inspector (right-click and choose "Inspect Element"), then click the "Run Tests" button.

+ \ No newline at end of file diff --git a/WebCore/manual-tests/inspector/debugger-execution-while-paused.html b/WebCore/manual-tests/inspector/debugger-execution-while-paused.html new file mode 100644 index 0000000..67446d4 --- /dev/null +++ b/WebCore/manual-tests/inspector/debugger-execution-while-paused.html @@ -0,0 +1,15 @@ + +

Test for Bug 20284: JavaScript can be executed even though debugger is running and at a break point.

+

To test, open the Inspector and start a debugging session. Set a break point inside the stepOne() function. Now click the Step One button in the page. The breakpoint should be hit. While paused at the breakpoint click on the Step Two button. You should not see an alert dialog.

+

+

diff --git a/WebCore/manual-tests/inspector/debugger-pause-during-load.html b/WebCore/manual-tests/inspector/debugger-pause-during-load.html new file mode 100644 index 0000000..631cafc --- /dev/null +++ b/WebCore/manual-tests/inspector/debugger-pause-during-load.html @@ -0,0 +1,5 @@ + +

Test for Bug 19053: Source code not visible when script is paused before onload fires.

+

To test, open the Inspector and start a debugging session. You should see this file and execution line in the Scripts panel.

diff --git a/WebCore/manual-tests/inspector/debugger-pause-on-else-statements.html b/WebCore/manual-tests/inspector/debugger-pause-on-else-statements.html new file mode 100644 index 0000000..424fb7e --- /dev/null +++ b/WebCore/manual-tests/inspector/debugger-pause-on-else-statements.html @@ -0,0 +1,18 @@ + + +Test for Bug 21944: Can't set a breakpoint on the statement after a single line "else". +

+Start a debugging session in the Web Inspector and open this file. When the debugger breaks, select the (program) node +in the call stack, you should see the execution line on the call to test(). +

+Also set a breakpoint on the call to test(), and reload. It should break before the test() function is called. diff --git a/WebCore/manual-tests/inspector/debugger-pause-on-for-in-statements.html b/WebCore/manual-tests/inspector/debugger-pause-on-for-in-statements.html new file mode 100644 index 0000000..c0c24e0 --- /dev/null +++ b/WebCore/manual-tests/inspector/debugger-pause-on-for-in-statements.html @@ -0,0 +1,18 @@ + + +Test for Bug 22004: Can't set a breakpoint on the statement after a single line "for". +

+Start a debugging session in the Web Inspector and open this file. When the debugger breaks, select the (program) node +in the call stack, you should see the execution line on the call to test(). +

+Also set a breakpoint on the call to test(), and reload. It should break before the test() function is called. diff --git a/WebCore/manual-tests/inspector/debugger-pause-on-for-statements.html b/WebCore/manual-tests/inspector/debugger-pause-on-for-statements.html new file mode 100644 index 0000000..43a63e2 --- /dev/null +++ b/WebCore/manual-tests/inspector/debugger-pause-on-for-statements.html @@ -0,0 +1,16 @@ + + +Test for Bug 22004: Can't set a breakpoint on the statement after a single line "for". +

+Start a debugging session in the Web Inspector and open this file. When the debugger breaks, select the (program) node +in the call stack, you should see the execution line on the call to test(). +

+Also set a breakpoint on the call to test(), and reload. It should break before the test() function is called. diff --git a/WebCore/manual-tests/inspector/debugger-status-bar-buttons-state.html b/WebCore/manual-tests/inspector/debugger-status-bar-buttons-state.html new file mode 100644 index 0000000..31ca3b1 --- /dev/null +++ b/WebCore/manual-tests/inspector/debugger-status-bar-buttons-state.html @@ -0,0 +1,2 @@ +

Test for Bug 19173: Tool tips for Inspector debugger status bar buttons are wrong/missing.

+

To test, open the Inspector and go to the Scripts panel. Check that the tool tips for the debugger's two status bar buttons make sense when each button is toggled on and off.

diff --git a/WebCore/manual-tests/inspector/display-sql-null.html b/WebCore/manual-tests/inspector/display-sql-null.html new file mode 100644 index 0000000..1d1403b --- /dev/null +++ b/WebCore/manual-tests/inspector/display-sql-null.html @@ -0,0 +1,21 @@ + +

Test for Bug 18837: Database panel fails to display tables if any value is NULL.

+

To test:

+
    +
  1. Open the Inspector
  2. +
  3. Go to the Databases panel
  4. +
  5. Click on the DisplaySQLNull table inside the InspectorTest database
  6. +
+

If the contents of the table appear (a single row with the value +"null" in the test column), you have passed the +test.

diff --git a/WebCore/manual-tests/inspector/display-sql-transaction-error.html b/WebCore/manual-tests/inspector/display-sql-transaction-error.html new file mode 100644 index 0000000..da2d310 --- /dev/null +++ b/WebCore/manual-tests/inspector/display-sql-transaction-error.html @@ -0,0 +1,24 @@ + +

Test for Bug 19438: Transaction errors are never displayed in database query view.

+

To test:

+
    +
  1. Open the Inspector
  2. +
  3. Go to the Databases panel
  4. +
  5. Click on the InspectorTest database
  6. +
  7. Enter the following text on the query input line: INSERT INTO DisplaySQLTransactionError (test) VALUES (NULL)
  8. +
+

If the line of text you entered remains and an error line is output below +it, you have passed the test.

+

If the line of text you entered disappears and no error line is output, you +have failed the test.

+

If the line of text you entered remains and no error line is output, then +the test has become invalid and needs to be modified to cause the error +callback passed by the Inspector to db.transaction to be called.

diff --git a/WebCore/manual-tests/inspector/dom-mutation.html b/WebCore/manual-tests/inspector/dom-mutation.html new file mode 100644 index 0000000..33e8333 --- /dev/null +++ b/WebCore/manual-tests/inspector/dom-mutation.html @@ -0,0 +1,31 @@ + +

Test for Bug 6590: Web Inspector shows stale DOM tree if the DOM changes after the inspector has loaded.

+

To test, open the Inspector and watch the DOM change to match the page. Clicking the buttons will navigate the subframe, and the all the subframe child nodes should change.

+
+ + +
+
+ +
+
diff --git a/WebCore/manual-tests/inspector/error-warning-count.html b/WebCore/manual-tests/inspector/error-warning-count.html new file mode 100644 index 0000000..9f6b9c2 --- /dev/null +++ b/WebCore/manual-tests/inspector/error-warning-count.html @@ -0,0 +1,60 @@ + + +

Test for Bug 18650: +Errors/warnings in Inspector should be visible outside of Resources.

+

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.

+

Note: You must reload the page between each button press.

diff --git a/WebCore/manual-tests/inspector/errors-with-space in-url.html b/WebCore/manual-tests/inspector/errors-with-space in-url.html new file mode 100644 index 0000000..07e8ee0 --- /dev/null +++ b/WebCore/manual-tests/inspector/errors-with-space in-url.html @@ -0,0 +1,7 @@ +

Test for Bug 19065: +Resources with a space in their URL don't get error/warning bubbles.

+

To test, open the Inspector and refresh this page. There should be a red +bubble with the number "1" in it next to the main resource in the Resources +panel. Clicking the button below should change the "1" to a "2".

+

+ diff --git a/WebCore/manual-tests/inspector/escape-links.html b/WebCore/manual-tests/inspector/escape-links.html new file mode 100644 index 0000000..5c5f6c0 --- /dev/null +++ b/WebCore/manual-tests/inspector/escape-links.html @@ -0,0 +1 @@ + diff --git a/WebCore/manual-tests/inspector/forzen-ui-while-paused.html b/WebCore/manual-tests/inspector/forzen-ui-while-paused.html new file mode 100644 index 0000000..b8d50b0 --- /dev/null +++ b/WebCore/manual-tests/inspector/forzen-ui-while-paused.html @@ -0,0 +1,11 @@ + +

Test for Bug 20042: UI frozen when the debugger is paused.

+

Open the inspector and start debugging in the Scripts panel. While paused, try to open the Console. The Console should animate open fully.

diff --git a/WebCore/manual-tests/inspector/highlight-source-line.html b/WebCore/manual-tests/inspector/highlight-source-line.html new file mode 100644 index 0000000..2520485 --- /dev/null +++ b/WebCore/manual-tests/inspector/highlight-source-line.html @@ -0,0 +1,4 @@ +

Test for Bug 19204: Inspector should highlight source lines when following links to them.

+

To test, open the Inspector and reload this page. Then open the Inspector's Console and click the link for the markup error. You should see the line containing the error briefly highlighted in the source view.

+ +

This line contains a markup error.

diff --git a/WebCore/manual-tests/inspector/multiple-console-messages.html b/WebCore/manual-tests/inspector/multiple-console-messages.html new file mode 100644 index 0000000..842e6aa --- /dev/null +++ b/WebCore/manual-tests/inspector/multiple-console-messages.html @@ -0,0 +1,86 @@ + + + + + +This test generates warnings, errors, and logs to test the grouping of repeated +messages in the Web Inspector. To check this test open the Web Inspector and see +that there are never any repeated messages that don't have a number next to them. +
+
+ +
+ +
+ + diff --git a/WebCore/manual-tests/inspector/profiler-test-call.html b/WebCore/manual-tests/inspector/profiler-test-call.html new file mode 100644 index 0000000..572a2e9 --- /dev/null +++ b/WebCore/manual-tests/inspector/profiler-test-call.html @@ -0,0 +1,35 @@ + + + + + + + +This page's JavaScript has a call to call() in it. +
+
+To use this test, load it in the browser then load the WebInspector and look at +the profile. In the profile there should be a call to fakeObject() with call() as +its child and a fakeInteriorFunction() as call()'s child. +
+ + diff --git a/WebCore/manual-tests/inspector/profiler-test-many-calls-in-the-same-scope.html b/WebCore/manual-tests/inspector/profiler-test-many-calls-in-the-same-scope.html new file mode 100644 index 0000000..da5be42 --- /dev/null +++ b/WebCore/manual-tests/inspector/profiler-test-many-calls-in-the-same-scope.html @@ -0,0 +1,42 @@ + + + + + + + +This page's JavaScript has many function calls in the same scope. +
+
+To use this test, load it in the browser then load the WebInspector and look at +the profile. In the profile many functions should be the children of startTest. +Use the sorting capabilites to make sure the similarly named functions are sorted +correctly. +
+ + \ No newline at end of file diff --git a/WebCore/manual-tests/inspector/resources/mutate-frame-2.html b/WebCore/manual-tests/inspector/resources/mutate-frame-2.html new file mode 100644 index 0000000..9d413b9 --- /dev/null +++ b/WebCore/manual-tests/inspector/resources/mutate-frame-2.html @@ -0,0 +1,12 @@ + diff --git a/WebCore/manual-tests/inspector/resources/mutate-frame.html b/WebCore/manual-tests/inspector/resources/mutate-frame.html new file mode 100644 index 0000000..08fc656 --- /dev/null +++ b/WebCore/manual-tests/inspector/resources/mutate-frame.html @@ -0,0 +1,10 @@ + diff --git a/WebCore/manual-tests/inspector/resources/script-console-calls.js b/WebCore/manual-tests/inspector/resources/script-console-calls.js new file mode 100644 index 0000000..9c7bc35 --- /dev/null +++ b/WebCore/manual-tests/inspector/resources/script-console-calls.js @@ -0,0 +1,8 @@ +console.info("Test console.info"); +console.log("Test console.log"); +console.warn("Test console.warn"); +console.error("Test console.error"); +console.time("Test console.time"); +console.timeEnd("Test console.time"); +console.count("Test console.count"); +console.assert(false, "Test console.assert"); diff --git a/WebCore/manual-tests/inspector/resources/script-error.js b/WebCore/manual-tests/inspector/resources/script-error.js new file mode 100644 index 0000000..c8be5ea --- /dev/null +++ b/WebCore/manual-tests/inspector/resources/script-error.js @@ -0,0 +1,6 @@ +var test = document.body; +this.will.be.an.error = 1; + +function test() { + return 42; +} diff --git a/WebCore/manual-tests/inspector/returnEvent-crash.html b/WebCore/manual-tests/inspector/returnEvent-crash.html new file mode 100644 index 0000000..5dd1119 --- /dev/null +++ b/WebCore/manual-tests/inspector/returnEvent-crash.html @@ -0,0 +1,17 @@ + +

Test for Bug 19038: Crash in JavaScriptDebugServer::returnEvent when inspecting an attached Inspector.

+

To test, open and attach the Inspector's debugger, then click the button below. If you don't crash, you have passed the test.

+ diff --git a/WebCore/manual-tests/inspector/styled-error-bubbles-in-scripts.html b/WebCore/manual-tests/inspector/styled-error-bubbles-in-scripts.html new file mode 100644 index 0000000..0049cef --- /dev/null +++ b/WebCore/manual-tests/inspector/styled-error-bubbles-in-scripts.html @@ -0,0 +1,6 @@ + +

Test for Bug 19065: +Error bubbles are clobbered when syntax highlighting JavaScript resources.

+

To test, open the Inspector. There should be a red bubble with the number "1" +in it next to the the only script resource in the Resources panel. Clicking the +resource should show syntax highlighted JavaScript with a red error bubble.

-- cgit v1.1