blob: a8605c719d1056de62d820c6b8fd3846cbfd1b97 [file] [log] [blame]
CONSOLE MESSAGE: BREAKPOINT ACTION LOG 1
CONSOLE MESSAGE: BREAKPOINT ACTION LOG 2
CONSOLE MESSAGE: BREAKPOINT ACTION LOG 3
CONSOLE MESSAGE: BREAKPOINT ACTION LOG 4
Tests for Event Listener breakpoints.
== Running test suite: DOMDebugger.Event.Listener
-- Running test case: DOMDebugger.Event.Listener.AddBreakpoint "click"
Creating "click" Event Breakpoint...
Adding "listener:click" Event Breakpoint...
Firing "click" on body...
PASS: Should pause before event handler is run.
CALL STACK:
0: [F] handleBody_click
1: [F] trigger_click
2: [P] Global Code
-- Running test teardown.
-- Running test case: DOMDebugger.Event.Listener.AddDisabledBreakpoint "click"
Creating "click" Event Breakpoint...
Adding "listener:click" Event Breakpoint...
Disabling "listener:click" Event Breakpoint...
Firing "click" on body...
PASS: Should not pause for disabled breakpoint.
-- Running test teardown.
-- Running test case: DOMDebugger.Event.Listener.RemoveBreakpoint "click"
Creating "click" Event Breakpoint...
Adding "listener:click" Event Breakpoint...
Removing "listener:click" Event Breakpoint...
Firing "click" on body...
PASS: Should not pause for removed breakpoint.
-- Running test teardown.
-- Running test case: DOMDebugger.Event.Listener.RemoveDisabledBreakpoint "click"
Creating "click" Event Breakpoint...
Adding "listener:click" Event Breakpoint...
Disabling "listener:click" Event Breakpoint...
Removing "listener:click" Event Breakpoint...
Firing "click" on body...
PASS: Should not pause for removed disabled breakpoint.
-- Running test teardown.
-- Running test case: DOMDebugger.Event.Listener.AddBreakpoint "custom"
Creating "custom" Event Breakpoint...
Adding "listener:custom" Event Breakpoint...
Firing "custom" on body...
PASS: Should pause before event handler is run.
CALL STACK:
0: [F] handleBody_custom
1: [F] trigger_custom
2: [P] Global Code
-- Running test teardown.
-- Running test case: DOMDebugger.Event.Listener.AddDisabledBreakpoint "custom"
Creating "custom" Event Breakpoint...
Adding "listener:custom" Event Breakpoint...
Disabling "listener:custom" Event Breakpoint...
Firing "custom" on body...
PASS: Should not pause for disabled breakpoint.
-- Running test teardown.
-- Running test case: DOMDebugger.Event.Listener.RemoveBreakpoint "custom"
Creating "custom" Event Breakpoint...
Adding "listener:custom" Event Breakpoint...
Removing "listener:custom" Event Breakpoint...
Firing "custom" on body...
PASS: Should not pause for removed breakpoint.
-- Running test teardown.
-- Running test case: DOMDebugger.Event.Listener.RemoveDisabledBreakpoint "custom"
Creating "custom" Event Breakpoint...
Adding "listener:custom" Event Breakpoint...
Disabling "listener:custom" Event Breakpoint...
Removing "listener:custom" Event Breakpoint...
Firing "custom" on body...
PASS: Should not pause for removed disabled breakpoint.
-- Running test teardown.
-- Running test case: DOMDebugger.Event.Listener.AllEventsBreakpoint
Creating "listener" Event Breakpoint...
Adding "listener" Event Breakpoint...
Firing "click" on body...
PASS: Should pause before event handler is run.
CALL STACK:
0: [F] handleBody_click
1: [F] trigger_click
2: [P] Global Code
Firing "custom" on body...
PASS: Should pause before event handler is run.
CALL STACK:
0: [F] handleBody_custom
1: [F] trigger_custom
2: [P] Global Code
PASS: Should have paused twice.
-- Running test teardown.
-- Running test case: DOMDebugger.Event.Listener.AddMultipleBreakpoints
Creating "click" Event Breakpoint...
Adding "listener:click" Event Breakpoint...
Firing "click" on div#x...
PASS: Should pause before event handler is run.
CALL STACK:
0: [F] handleX_click
1: [F] clickX
2: [P] Global Code
PASS: Should pause before event handler is run.
CALL STACK:
0: [F] handleBody_click
1: [F] clickX
2: [P] Global Code
PASS: Should have paused twice.
-- Running test teardown.
-- Running test case: DOMDebugger.Event.Listener.DisableBetweenDispatches
Creating "click" Event Breakpoint...
Adding "listener:click" Event Breakpoint...
Firing "click" on div#x...
PASS: Should pause before event handler is run.
CALL STACK:
0: [F] handleX_click
1: [F] clickX
2: [P] Global Code
Disabling breakpoints...
PASS: Should have paused once.
-- Running test teardown.
-- Running test case: DOMDebugger.Event.Listener.Options.Condition
Creating "click" Event Breakpoint...
Adding "listener:click" Event Breakpoint...
Setting condition to 'false'...
Triggering breakpoint...
PASS: Should not pause.
Triggering breakpoint...
PASS: Should not pause.
Setting condition to 'true'...
Triggering breakpoint...
PASS: Should pause.
Triggering breakpoint...
PASS: Should pause.
-- Running test case: DOMDebugger.Event.Listener.Options.Condition.ConsoleCommandLineAPI
Adding saved console value 'false'...
Creating "click" Event Breakpoint...
Adding "listener:click" Event Breakpoint...
Setting condition to saved console value...
Triggering breakpoint...
PASS: Should not pause.
Triggering breakpoint...
PASS: Should not pause.
Adding saved console value 'true'...
Setting condition to saved console value...
Triggering breakpoint...
PASS: Should pause.
Triggering breakpoint...
PASS: Should pause.
-- Running test case: DOMDebugger.Event.Listener.Options.IgnoreCount
Creating "click" Event Breakpoint...
Adding "listener:click" Event Breakpoint...
Setting ignoreCount to '2'...
Triggering breakpoint...
PASS: Should not pause.
Triggering breakpoint...
PASS: Should not pause.
Triggering breakpoint...
PASS: Should pause.
Triggering breakpoint...
PASS: Should pause.
-- Running test case: DOMDebugger.Event.Listener.Options.Action.Log
Creating "click" Event Breakpoint...
Adding "listener:click" Event Breakpoint...
Adding log action...
Triggering breakpoint...
PASS: Should execute breakpoint action.
PASS: Should pause.
Editing log action...
Triggering breakpoint...
PASS: Should execute breakpoint action.
PASS: Should pause.
Editing log action...
Enabling auto-continue...
Triggering breakpoint...
PASS: Should execute breakpoint action.
PASS: Should not pause.
Editing log action...
Triggering breakpoint...
PASS: Should execute breakpoint action.
PASS: Should not pause.
-- Running test case: DOMDebugger.Event.Listener.Options.Actions.Evaluate
Creating "click" Event Breakpoint...
Adding "listener:click" Event Breakpoint...
Adding evaluate action...
Triggering breakpoint...
PASS: Should execute breakpoint action.
PASS: Should pause.
Editing evaluate action...
Triggering breakpoint...
PASS: Should execute breakpoint action.
PASS: Should pause.
Editing evaluate action...
Enabling auto-continue...
Triggering breakpoint...
PASS: Should execute breakpoint action.
PASS: Should not pause.
Editing evaluate action...
Triggering breakpoint...
PASS: Should execute breakpoint action.
PASS: Should not pause.
-- Running test case: DOMDebugger.Event.Listener.Options.Actions.Evaluate.ConsoleCommandLineAPI
Adding saved console value '1'...
Creating "click" Event Breakpoint...
Adding "listener:click" Event Breakpoint...
Adding evaluate action using saved console value...
Triggering breakpoint...
PASS: Should execute breakpoint action.
PASS: Should pause.
Adding saved console value '2'...
Editing evaluate action using saved console value...
Triggering breakpoint...
PASS: Should execute breakpoint action.
PASS: Should pause.
Adding saved console value '3'...
Editing evaluate action using saved console value...
Enabling auto-continue...
Triggering breakpoint...
PASS: Should execute breakpoint action.
PASS: Should not pause.
Adding saved console value '4'...
Editing evaluate action using saved console value...
Triggering breakpoint...
PASS: Should execute breakpoint action.
PASS: Should not pause.