Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Unified Diff: webkit/glue/devtools/js/tests.js

Issue 159395: DevTools: make pause work for script evaluations (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/glue/devtools/js/inject.js ('k') | webkit/glue/devtools/tools_agent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/devtools/js/tests.js
===================================================================
--- webkit/glue/devtools/js/tests.js (revision 21636)
+++ webkit/glue/devtools/js/tests.js (working copy)
@@ -444,6 +444,28 @@
/**
+ * 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() {
+ test.releaseControl();
+ });
+
+ test.takeControl();
+};
+
+
+/**
* Key event with given key identifier.
*/
TestSuite.KeyEvent = function(key) {
« no previous file with comments | « webkit/glue/devtools/js/inject.js ('k') | webkit/glue/devtools/tools_agent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698