From b46442d7e2e8cccf5f9bcafb2e1e3b7cf23d424b Mon Sep 17 00:00:00 2001 From: "joi@chromium.org" Date: Wed, 29 Jun 2011 02:16:06 +0000 Subject: 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 --- .../manual_tests/console-call-line-numbers.html | 15 +++ .../manual_tests/debugger-exception-on-load.html | 5 + .../debugger-execution-while-paused.html | 17 ++++ .../manual_tests/debugger-fake-workers.html | 102 +++++++++++++++++++++ .../debugger-pause-on-else-statements.html | 16 ++++ .../debugger-pause-on-for-in-statements.html | 16 ++++ .../debugger-pause-on-for-statements.html | 14 +++ .../debugger-step-on-do-while-statements.html | 27 ++++++ .../debugger-step-on-for-in-statements.html | 35 +++++++ .../debugger-step-on-for-statements.html | 25 +++++ .../debugger-step-on-while-statements.html | 28 ++++++ .../manual_tests/debugger-watch-expressions.html | 79 ++++++++++++++++ .../debugger/manual_tests/dom-mutation.html | 32 +++++++ .../debugger/manual_tests/element-styles.html | 40 ++++++++ .../debugger/manual_tests/error-warning-count.html | 58 ++++++++++++ .../debugger/manual_tests/event-listeners.html | 30 ++++++ ...eap-profiler-test-basic-grid-functionality.html | 32 +++++++ .../heap-profiler-test-snapshots-comparison.html | 83 +++++++++++++++++ .../debugger/manual_tests/highlight-nodes.html | 23 +++++ .../manual_tests/highlight-source-line.html | 3 + .../profiler-test-basic-grid-functionality.html | 38 ++++++++ .../profiler-test-console-control.html | 27 ++++++ .../profiler-test-focus-and-exclude.html | 71 ++++++++++++++ .../manual_tests/profiler-test-re-opening.html | 37 ++++++++ .../browser/debugger/manual_tests/resources/fib.js | 20 ++++ .../manual_tests/resources/loop-statements.js | 22 +++++ .../manual_tests/resources/mutate-frame-2.html | 12 +++ .../manual_tests/resources/mutate-frame.html | 10 ++ .../debugger/manual_tests/resources/primes.js | 13 +++ .../manual_tests/resources/script-console-calls.js | 8 ++ .../manual_tests/resources/worker-primes.js | 10 ++ 31 files changed, 948 insertions(+) create mode 100644 content/browser/debugger/manual_tests/console-call-line-numbers.html create mode 100644 content/browser/debugger/manual_tests/debugger-exception-on-load.html create mode 100644 content/browser/debugger/manual_tests/debugger-execution-while-paused.html create mode 100644 content/browser/debugger/manual_tests/debugger-fake-workers.html create mode 100644 content/browser/debugger/manual_tests/debugger-pause-on-else-statements.html create mode 100644 content/browser/debugger/manual_tests/debugger-pause-on-for-in-statements.html create mode 100644 content/browser/debugger/manual_tests/debugger-pause-on-for-statements.html create mode 100644 content/browser/debugger/manual_tests/debugger-step-on-do-while-statements.html create mode 100644 content/browser/debugger/manual_tests/debugger-step-on-for-in-statements.html create mode 100644 content/browser/debugger/manual_tests/debugger-step-on-for-statements.html create mode 100644 content/browser/debugger/manual_tests/debugger-step-on-while-statements.html create mode 100644 content/browser/debugger/manual_tests/debugger-watch-expressions.html create mode 100644 content/browser/debugger/manual_tests/dom-mutation.html create mode 100644 content/browser/debugger/manual_tests/element-styles.html create mode 100644 content/browser/debugger/manual_tests/error-warning-count.html create mode 100644 content/browser/debugger/manual_tests/event-listeners.html create mode 100644 content/browser/debugger/manual_tests/heap-profiler-test-basic-grid-functionality.html create mode 100644 content/browser/debugger/manual_tests/heap-profiler-test-snapshots-comparison.html create mode 100644 content/browser/debugger/manual_tests/highlight-nodes.html create mode 100644 content/browser/debugger/manual_tests/highlight-source-line.html create mode 100644 content/browser/debugger/manual_tests/profiler-test-basic-grid-functionality.html create mode 100644 content/browser/debugger/manual_tests/profiler-test-console-control.html create mode 100644 content/browser/debugger/manual_tests/profiler-test-focus-and-exclude.html create mode 100644 content/browser/debugger/manual_tests/profiler-test-re-opening.html create mode 100644 content/browser/debugger/manual_tests/resources/fib.js create mode 100644 content/browser/debugger/manual_tests/resources/loop-statements.js create mode 100644 content/browser/debugger/manual_tests/resources/mutate-frame-2.html create mode 100644 content/browser/debugger/manual_tests/resources/mutate-frame.html create mode 100644 content/browser/debugger/manual_tests/resources/primes.js create mode 100644 content/browser/debugger/manual_tests/resources/script-console-calls.js create mode 100644 content/browser/debugger/manual_tests/resources/worker-primes.js (limited to 'content/browser/debugger/manual_tests') diff --git a/content/browser/debugger/manual_tests/console-call-line-numbers.html b/content/browser/debugger/manual_tests/console-call-line-numbers.html new file mode 100644 index 0000000..98bb918 --- /dev/null +++ b/content/browser/debugger/manual_tests/console-call-line-numbers.html @@ -0,0 +1,15 @@ + + + +

To test, open the DevTools's Console (Ctrl+Shift+J) 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 panel file list and each individual resource view.

diff --git a/content/browser/debugger/manual_tests/debugger-exception-on-load.html b/content/browser/debugger/manual_tests/debugger-exception-on-load.html new file mode 100644 index 0000000..ef2384f --- /dev/null +++ b/content/browser/debugger/manual_tests/debugger-exception-on-load.html @@ -0,0 +1,5 @@ + + +

To test, open the DevTools (Ctrl+Shift+I) and reload the page. You should see this file and execution line in the Scripts panel.

diff --git a/content/browser/debugger/manual_tests/debugger-execution-while-paused.html b/content/browser/debugger/manual_tests/debugger-execution-while-paused.html new file mode 100644 index 0000000..f33abea --- /dev/null +++ b/content/browser/debugger/manual_tests/debugger-execution-while-paused.html @@ -0,0 +1,17 @@ + + +

To test, open the DevTools (Ctrl+Shift+I) and reload the page. 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. Continue script.

+

+ diff --git a/content/browser/debugger/manual_tests/debugger-fake-workers.html b/content/browser/debugger/manual_tests/debugger-fake-workers.html new file mode 100644 index 0000000..6a7cb03 --- /dev/null +++ b/content/browser/debugger/manual_tests/debugger-fake-workers.html @@ -0,0 +1,102 @@ + + + + +

Tests debugging of HTML5 Workers

+ +
    + +
  1. Open DevTools, Scripts Panel; Tick Debug on Workers sidebar.
  2. +
  3. Reload the page.
  4. +
  5. +
  6. Observe 2 workers appear in the worker sidebar pane (including non-existent-worker.js)"
  7. +
  8. Observe worker-primes.js and primes.js appear in scripts drop-down box.
  9. +
  10. Assure primes are being logged to test console below.
  11. +
  12. Set a breakpoint on one of worker scripts, assure it's hit.
  13. +
  14. Try causing an error in worker, observe it's logged in DevTools console and in test console below. + +
  15. + +
+ +
+
+ + + diff --git a/content/browser/debugger/manual_tests/debugger-pause-on-else-statements.html b/content/browser/debugger/manual_tests/debugger-pause-on-else-statements.html new file mode 100644 index 0000000..3c80a43 --- /dev/null +++ b/content/browser/debugger/manual_tests/debugger-pause-on-else-statements.html @@ -0,0 +1,16 @@ + + +

To test, open the DevTools (Ctrl+Shift+I) and reload the page. When the debugger breaks, select the (anonymous function) 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/content/browser/debugger/manual_tests/debugger-pause-on-for-in-statements.html b/content/browser/debugger/manual_tests/debugger-pause-on-for-in-statements.html new file mode 100644 index 0000000..79f7983 --- /dev/null +++ b/content/browser/debugger/manual_tests/debugger-pause-on-for-in-statements.html @@ -0,0 +1,16 @@ + + +

To test, open the DevTools (Ctrl+Shift+I) and reload the page. When the debugger breaks, select +the (anonymous function) 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/content/browser/debugger/manual_tests/debugger-pause-on-for-statements.html b/content/browser/debugger/manual_tests/debugger-pause-on-for-statements.html new file mode 100644 index 0000000..1a9e274 --- /dev/null +++ b/content/browser/debugger/manual_tests/debugger-pause-on-for-statements.html @@ -0,0 +1,14 @@ + + +

To test, open the DevTools (Ctrl+Shift+I) and reload the page. When the debugger breaks, select the +(anonymous function) 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/content/browser/debugger/manual_tests/debugger-step-on-do-while-statements.html b/content/browser/debugger/manual_tests/debugger-step-on-do-while-statements.html new file mode 100644 index 0000000..f60dd6a --- /dev/null +++ b/content/browser/debugger/manual_tests/debugger-step-on-do-while-statements.html @@ -0,0 +1,27 @@ + + +

To test, open the DevTools (Ctrl+Shift+I) and reload the page. +

+Before running the tests please perform the following: +Make sure the execution is not paused in the debugger.
+Click the button and when the debugger breaks, set a breakpoint on the first line in the loop +(as indicated by the comment), and click continue.
+The debugger should stop at the beggining of the loop.
+The above actions should be performed before each of the following tests.

+

+ +

+TEST 1: Click 'continue'. Execution should continue without stopping on the loop breakpoint again.
+TEST 2: Click 'Step into'. Debugger should step inside each function.
+TEST 3: 'Step over' to the end of the loop (and 'while' statement) and step over again. Debugger +should go to the beggining of the loop.
diff --git a/content/browser/debugger/manual_tests/debugger-step-on-for-in-statements.html b/content/browser/debugger/manual_tests/debugger-step-on-for-in-statements.html new file mode 100644 index 0000000..e360394 --- /dev/null +++ b/content/browser/debugger/manual_tests/debugger-step-on-for-in-statements.html @@ -0,0 +1,35 @@ + +

To test, open the DevTools (Ctrl+Shift+I) and reload the page. +

+Before running the tests please perform the following: +Make sure the execution is not paused in the debugger.
+Click the button and when the debugger breaks, set a breakpoint on the first line in the loop +(as indicated by the comment), and click continue.
+The debugger should stop at the beggining of the loop.
+The above actions should be performed before each of the following tests.

+

+ +

+TEST 1: Click 'continue'. Execution should continue without stopping on the loop breakpoint again.
+TEST 2: Click 'Step over'. Debugger should step inside the loop to the next statement line.
+TEST 3: Click 'Step into'. Debugger should step into 'getObject' function.
+TEST 4: 'Step over' to the statement line and then 'Step over' again. Debugger should pause on +the for-in loop again.
diff --git a/content/browser/debugger/manual_tests/debugger-step-on-for-statements.html b/content/browser/debugger/manual_tests/debugger-step-on-for-statements.html new file mode 100644 index 0000000..75289e5f --- /dev/null +++ b/content/browser/debugger/manual_tests/debugger-step-on-for-statements.html @@ -0,0 +1,25 @@ + + +

To test, open the DevTools (Ctrl+Shift+I) and reload the page. +

+Before running the tests please perform the following: +Make sure the execution is not paused in the debugger.
+Click the button and when the debugger breaks, set a breakpoint on the first line in the loop +(as indicated by the comment), and click continue.
+The debugger should stop at the beggining of the loop.
+The above actions should be performed before each of the following tests.

+

+ +

+TEST 1: Click 'continue'. Execution should continue without stopping on the loop breakpoint again.
+TEST 2: Click 'Step over'. Debugger should step inside the loop to the next statement line.
+TEST 3: Click 'Step into'. Debugger should step into 'initialize' function. Click 'Step into' until +outside of the 'initialize' function - debugger should enter the 'condition' function.
+function.
diff --git a/content/browser/debugger/manual_tests/debugger-step-on-while-statements.html b/content/browser/debugger/manual_tests/debugger-step-on-while-statements.html new file mode 100644 index 0000000..7967172 --- /dev/null +++ b/content/browser/debugger/manual_tests/debugger-step-on-while-statements.html @@ -0,0 +1,28 @@ + + +

To test, open the DevTools (Ctrl+Shift+I) and reload the page. +

+Before running the tests please perform the following: +Make sure the execution is not paused in the debugger.
+Click the button and when the debugger breaks, set a breakpoint on the first line in the loop +(as indicated by the comment), and click continue.
+The debugger should stop at the beggining of the loop.
+The above actions should be performed before each of the following tests.

+

+ +

+TEST 1: Click 'continue'. Execution should continue without stopping on the loop breakpoint again.
+TEST 2: Click 'Step over'. Debugger should step inside the loop to the next statement line.
+TEST 3: Click 'Step into'. Debugger should step into 'condition' function.
+step over to the beggingin of the while loop again. Click 'Step into'. Debugger should step into +the 'condition' function.
diff --git a/content/browser/debugger/manual_tests/debugger-watch-expressions.html b/content/browser/debugger/manual_tests/debugger-watch-expressions.html new file mode 100644 index 0000000..a2e9258 --- /dev/null +++ b/content/browser/debugger/manual_tests/debugger-watch-expressions.html @@ -0,0 +1,79 @@ +

Test for watched expression

+ +

To begin test, open DevTools, go the Scripts Panel +and then click this link: [begin test]. + +

Perform the following steps, and note the expected results: + +

    + +
  1. After clicking the link above, you should now be paused in the body of +the test method, thanks to the debugger statement. + +

  2. Add the following expressions to the "Watch Expressions" section of the +Scripts panel sidebar pane: "this", "a", +"b", "c" and "d". Do NOT enter the quotes. + +

  3. The values of the expressions as shown in the window should be +Object for this, undefined for +the a, b, and c variables, and a +value of ReferenceError: d is not defined +for the d variable. + +

  4. Note that the value for d should not change for the life of +the test, as the variable d is never introduced in the program. + +

  5. Step through the code, and you'll see the values of a, +b, and c change, as the variables are assigned. +Also note that as the scope changes due to the function invocation, values +will be changed to refer to their current scope. The this +expression will change when the method is invoked on the object constructed by +the test. + +

  6. Click different stack frames in the Call Stack section to ensure the +expressions change value appropriately as the current stack frame changes. + +

+ + diff --git a/content/browser/debugger/manual_tests/dom-mutation.html b/content/browser/debugger/manual_tests/dom-mutation.html new file mode 100644 index 0000000..a03b03c --- /dev/null +++ b/content/browser/debugger/manual_tests/dom-mutation.html @@ -0,0 +1,32 @@ + +

To begin test, open DevTools, Elements Panel 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. +Expand DOM nodes in the Elements Panel to see new nodes appearing in the list live.

+
+ + +
+
+ +
+
diff --git a/content/browser/debugger/manual_tests/element-styles.html b/content/browser/debugger/manual_tests/element-styles.html new file mode 100644 index 0000000..cb33919 --- /dev/null +++ b/content/browser/debugger/manual_tests/element-styles.html @@ -0,0 +1,40 @@ + +

To begin test, open DevTools, select the Elements panel. Expand the Styles pane in the sidebar.

+ + +
CLASS_TEST CLASS_TEST CLASS_TEST CLASS_TEST CLASS_TEST CLASS_TEST CLASS_TEST
\ No newline at end of file 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 @@ + + +

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.

+

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

diff --git a/content/browser/debugger/manual_tests/event-listeners.html b/content/browser/debugger/manual_tests/event-listeners.html new file mode 100644 index 0000000..4dff96d --- /dev/null +++ b/content/browser/debugger/manual_tests/event-listeners.html @@ -0,0 +1,30 @@ + + + + +
+
+
+

To begin test, open DevTools, select the Elements panel. Expand the Event Listeners +pane in the sidebar. +

+ diff --git a/content/browser/debugger/manual_tests/heap-profiler-test-basic-grid-functionality.html b/content/browser/debugger/manual_tests/heap-profiler-test-basic-grid-functionality.html new file mode 100644 index 0000000..5aa4555 --- /dev/null +++ b/content/browser/debugger/manual_tests/heap-profiler-test-basic-grid-functionality.html @@ -0,0 +1,32 @@ + + + Heap Profiler: basic grid functionality test + + + This is the test for basic functionality of heap snapshot view grid. +
+
+ To use this test: + +
+ On the left pane under 'Heap snapshots' section, an item called + 'Snapshot 1' must appear, and a grid with snapshot data must + appear on the right. Now test the following functionality in the grid: + + + diff --git a/content/browser/debugger/manual_tests/heap-profiler-test-snapshots-comparison.html b/content/browser/debugger/manual_tests/heap-profiler-test-snapshots-comparison.html new file mode 100644 index 0000000..3a419d4e --- /dev/null +++ b/content/browser/debugger/manual_tests/heap-profiler-test-snapshots-comparison.html @@ -0,0 +1,83 @@ + + + Heap Profiler: heap snapshots comparison test + + + + This is the test for heap snapshot comparison functionality. +
+
+ To use this test: + +
+ On the left pane under 'Heap snapshots' section, items called + 'Snapshot 1' and 'Snapshot 2' must appear. Select 'Snapshot 2'. + Ensure that absolute values are shown (not percents). +
+
+ TEST 1. Verify the following: + +
+ TEST 2. Change display to percent view (using the percent button on the + status bar). Verify the following: + + + diff --git a/content/browser/debugger/manual_tests/highlight-nodes.html b/content/browser/debugger/manual_tests/highlight-nodes.html new file mode 100644 index 0000000..cbeae6f --- /dev/null +++ b/content/browser/debugger/manual_tests/highlight-nodes.html @@ -0,0 +1,23 @@ + +

This page has basic tests of node highlighting in the inspected page. To test, load this page, open the DevTools and mouseover the nodes in the treeview of the inspector. You should see the highlights happen with the appropriate padding/border/margin/content highlights.

+
padding:10px; border: 10px; margin: 10px;
+
padding:10px; border: 10px;
+
padding:10px; margin: 10px;
+
border: 10px; margin: 10px;
+
padding:10px;
+
border: 10px;
+
margin: 10px;
+
no padding, border, or margin
+
-webkit-transform:skew(-5deg,-5deg); padding:10px; border: 10px; margin: 10px;
+
-webkit-transform:skew(-5deg,-5deg); padding:10px; border: 10px;
+
-webkit-transform:skew(-5deg,-5deg); padding:10px; margin: 10px;
+
-webkit-transform:skew(-5deg,-5deg); border: 10px; margin: 10px;
+
-webkit-transform:skew(-5deg,-5deg); padding:10px;
+
-webkit-transform:skew(-5deg,-5deg); border: 10px;
+
-webkit-transform:skew(-5deg,-5deg); margin: 10px;
+
-webkit-transform:skew(-5deg,-5deg); no padding, border, or margin
+ diff --git a/content/browser/debugger/manual_tests/highlight-source-line.html b/content/browser/debugger/manual_tests/highlight-source-line.html new file mode 100644 index 0000000..a56ed97 --- /dev/null +++ b/content/browser/debugger/manual_tests/highlight-source-line.html @@ -0,0 +1,3 @@ +

To test, open the DevTools and reload this page. Then open the 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/content/browser/debugger/manual_tests/profiler-test-basic-grid-functionality.html b/content/browser/debugger/manual_tests/profiler-test-basic-grid-functionality.html new file mode 100644 index 0000000..1841715 --- /dev/null +++ b/content/browser/debugger/manual_tests/profiler-test-basic-grid-functionality.html @@ -0,0 +1,38 @@ + + + Profiler: basic grid functionality test + + + + This test runs a simple looped computation to test basic + functionality of profile view grid. +
+
+ To use this test: + +
+ On the left pane under 'CPU profiles' section, an item called + 'Profile 1' must appear, and a grid with profile data must + appear on the right. Now test the following functionality in the grid: + + + diff --git a/content/browser/debugger/manual_tests/profiler-test-console-control.html b/content/browser/debugger/manual_tests/profiler-test-console-control.html new file mode 100644 index 0000000..4f2001a --- /dev/null +++ b/content/browser/debugger/manual_tests/profiler-test-console-control.html @@ -0,0 +1,27 @@ + + + Profiler: test console controlling of CPU profiling + + + + + This test runs and profiles a simple looped computation. +
+
+ TEST + +
+ + diff --git a/content/browser/debugger/manual_tests/profiler-test-focus-and-exclude.html b/content/browser/debugger/manual_tests/profiler-test-focus-and-exclude.html new file mode 100644 index 0000000..d33e3eb --- /dev/null +++ b/content/browser/debugger/manual_tests/profiler-test-focus-and-exclude.html @@ -0,0 +1,71 @@ + + + Profiler: focusing and exclusion test + + + + This test runs a simple looped computation to test focusing and + exclusion functionality of profile view grid. +
+
+ To use this test: + +
+ On the left pane under 'CPU profiles' section, an item called + 'Profile 1' must appear, and a grid with profile data must + appear on the right. Now test the following functionality in the grid: +
+ TEST 1: + +
+ TEST 2: + +
+ TEST 3: + +
+ TESTS 4 and 5: +
+ Now switch to 'Tree (Top Down)' view and repeat testing steps. + For the 'Exclude selected function' function test, use + 'Script:' function node, as 'eternal_fib' has only + one entry in this view. + + diff --git a/content/browser/debugger/manual_tests/profiler-test-re-opening.html b/content/browser/debugger/manual_tests/profiler-test-re-opening.html new file mode 100644 index 0000000..a615afa --- /dev/null +++ b/content/browser/debugger/manual_tests/profiler-test-re-opening.html @@ -0,0 +1,37 @@ + + + Profiler: test profiles population on DevTools re-opening + + + + + This test runs and profiles a simple looped computation. +
+
+ TEST + +
+ + diff --git a/content/browser/debugger/manual_tests/resources/fib.js b/content/browser/debugger/manual_tests/resources/fib.js new file mode 100644 index 0000000..804c866 --- /dev/null +++ b/content/browser/debugger/manual_tests/resources/fib.js @@ -0,0 +1,20 @@ +function fib(n) { + return n < 2 ? 1 : fib(n - 1) + fib(n - 2); +} + +function eternal_fib() { + var started = Date.now(); + while(true) { + fib(20); + // Make page responsive by making a break every 100 ms. + if (Date.now() - started >= 100) { + setTimeout(eternal_fib, 0); + return; + } + } +} + +function run_fib() { + // Let the page do initial rendering, then go. + setTimeout(eternal_fib, 200); +} diff --git a/content/browser/debugger/manual_tests/resources/loop-statements.js b/content/browser/debugger/manual_tests/resources/loop-statements.js new file mode 100644 index 0000000..cbb4e0d --- /dev/null +++ b/content/browser/debugger/manual_tests/resources/loop-statements.js @@ -0,0 +1,22 @@ +var i; +var a; + +function initialize() +{ + i = false; +} + +function condition() +{ + return !i; +} + +function increment() +{ + i = !i; +} + +function statement() +{ + a = i; +} diff --git a/content/browser/debugger/manual_tests/resources/mutate-frame-2.html b/content/browser/debugger/manual_tests/resources/mutate-frame-2.html new file mode 100644 index 0000000..9d413b9 --- /dev/null +++ b/content/browser/debugger/manual_tests/resources/mutate-frame-2.html @@ -0,0 +1,12 @@ + diff --git a/content/browser/debugger/manual_tests/resources/mutate-frame.html b/content/browser/debugger/manual_tests/resources/mutate-frame.html new file mode 100644 index 0000000..08fc656 --- /dev/null +++ b/content/browser/debugger/manual_tests/resources/mutate-frame.html @@ -0,0 +1,10 @@ + diff --git a/content/browser/debugger/manual_tests/resources/primes.js b/content/browser/debugger/manual_tests/resources/primes.js new file mode 100644 index 0000000..64d38dc --- /dev/null +++ b/content/browser/debugger/manual_tests/resources/primes.js @@ -0,0 +1,13 @@ +function Primes() { + this.primes_ = {}; +} + +Primes.prototype.test = function(p) { + for (var divisor in this.primes_) { + if (p % divisor === 0) return false; + if (divisor * divisor > p) + break; + } + this.primes_[p] = 1; + return true; +} diff --git a/content/browser/debugger/manual_tests/resources/script-console-calls.js b/content/browser/debugger/manual_tests/resources/script-console-calls.js new file mode 100644 index 0000000..9c7bc35 --- /dev/null +++ b/content/browser/debugger/manual_tests/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/content/browser/debugger/manual_tests/resources/worker-primes.js b/content/browser/debugger/manual_tests/resources/worker-primes.js new file mode 100644 index 0000000..8be021f --- /dev/null +++ b/content/browser/debugger/manual_tests/resources/worker-primes.js @@ -0,0 +1,10 @@ +importScripts('primes.js'); + +var primes = new Primes(); + +onmessage = function(event) { + var p = event.data; + if (p != parseInt(p)) + throw 'invalid argument'; + postMessage([p, primes.test(p)]); +} -- cgit v1.1