Index: webkit/glue/devtools/js/tests.js |
=================================================================== |
--- webkit/glue/devtools/js/tests.js (revision 21519) |
+++ webkit/glue/devtools/js/tests.js (working copy) |
@@ -444,6 +444,29 @@ |
/** |
+ * Tests 'Pause' button will pause debugger when a snippet is evaluated. |
+ */ |
+TestSuite.prototype.testPauseInEval = function() { |
+ this.showPanel('scripts'); |
+ |
+ var test = this; |
+ |
+ var pauseButton = document.getElementById('scripts-pause'); |
+ pauseButton.click(); |
+ |
+ devtools.tools.evaluateJavaScript('fib(10)'); |
+ |
+ this.addSniffer(WebInspector, 'pausedScript', |
+ function() { |
+ alert(0); |
pfeldman
2009/07/27 07:50:15
alert?
|
+ test.releaseControl(); |
+ }); |
+ |
+ test.takeControl(); |
+}; |
+ |
+ |
+/** |
* Key event with given key identifier. |
*/ |
TestSuite.KeyEvent = function(key) { |