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

Unified Diff: Source/devtools/front_end/Tests.js

Issue 23484056: [DevTools] Renaming Scripts panel to Sources panel (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Modified missed files Created 7 years, 3 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 | « Source/devtools/front_end/StylesSidebarPane.js ('k') | Source/devtools/front_end/Toolbar.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/Tests.js
diff --git a/Source/devtools/front_end/Tests.js b/Source/devtools/front_end/Tests.js
index f919c03aac05025c8521ba9a556fbe5fe152d251..7798ecd3bdf702640ef9d5b81811810e6c7befa9 100644
--- a/Source/devtools/front_end/Tests.js
+++ b/Source/devtools/front_end/Tests.js
@@ -244,7 +244,7 @@ TestSuite.prototype.testCompletionOnPause = function()
*/
TestSuite.prototype.testShowScriptsTab = function()
{
- this.showPanel("scripts");
+ this.showPanel("sources");
var test = this;
// There should be at least main page script.
this._waitUntilScriptsAreParsed(["debugger_test_page.html"],
@@ -274,7 +274,7 @@ TestSuite.prototype.testScriptsTabIsPopulatedOnInspectedPageRefresh = function()
function waitUntilScriptIsParsed()
{
WebInspector.debuggerModel.removeEventListener(WebInspector.DebuggerModel.Events.GlobalObjectCleared, waitUntilScriptIsParsed);
- test.showPanel("scripts");
+ test.showPanel("sources");
test._waitUntilScriptsAreParsed(["debugger_test_page.html"],
function() {
test.releaseControl();
@@ -291,7 +291,7 @@ TestSuite.prototype.testScriptsTabIsPopulatedOnInspectedPageRefresh = function()
*/
TestSuite.prototype.testContentScriptIsPresent = function()
{
- this.showPanel("scripts");
+ this.showPanel("sources");
var test = this;
test._waitUntilScriptsAreParsed(
@@ -318,7 +318,7 @@ TestSuite.prototype.testNoScriptDuplicatesOnPanelSwitch = function()
var expectedScriptsCount = 2;
var parsedScripts = [];
- this.showPanel("scripts");
+ this.showPanel("sources");
function switchToElementsTab() {
test.showPanel("elements");
@@ -326,7 +326,7 @@ TestSuite.prototype.testNoScriptDuplicatesOnPanelSwitch = function()
}
function switchToScriptsTab() {
- test.showPanel("scripts");
+ test.showPanel("sources");
setTimeout(checkScriptsPanel, 0);
}
@@ -362,7 +362,7 @@ TestSuite.prototype.testNoScriptDuplicatesOnPanelSwitch = function()
// frontend is being loaded.
TestSuite.prototype.testPauseWhenLoadingDevTools = function()
{
- this.showPanel("scripts");
+ this.showPanel("sources");
// Script execution can already be paused.
if (WebInspector.debuggerModel.debuggerPausedDetails)
@@ -377,7 +377,7 @@ TestSuite.prototype.testPauseWhenLoadingDevTools = function()
// is already running.
TestSuite.prototype.testPauseWhenScriptIsRunning = function()
{
- this.showPanel("scripts");
+ this.showPanel("sources");
this.evaluateInConsole_(
'setTimeout("handleClick()" , 0)',
@@ -393,7 +393,7 @@ TestSuite.prototype.testPauseWhenScriptIsRunning = function()
function testScriptPause() {
// The script should be in infinite loop. Click "Pause" button to
// pause it and wait for the result.
- WebInspector.panels.scripts._pauseButton.element.click();
+ WebInspector.panels.sources._pauseButton.element.click();
this._waitForScriptPause(this.releaseControl.bind(this));
}
@@ -909,7 +909,7 @@ TestSuite.prototype._waitUntilScriptsAreParsed = function(expectedScripts, callb
if (test._scriptsAreParsed(expectedScripts))
callback();
else
- test.addSniffer(WebInspector.panels.scripts, "_addUISourceCode", waitForAllScripts);
+ test.addSniffer(WebInspector.panels.sources, "_addUISourceCode", waitForAllScripts);
}
waitForAllScripts();
« no previous file with comments | « Source/devtools/front_end/StylesSidebarPane.js ('k') | Source/devtools/front_end/Toolbar.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698