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

Unified Diff: LayoutTests/http/tests/inspector-protocol/resources/protocol-test.js

Issue 121263002: DevTools: Do not force style sheets update on inspector start. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed test Created 7 years 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 | « no previous file | LayoutTests/inspector-protocol/stylesheet-tracking-restart.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/inspector-protocol/resources/protocol-test.js
diff --git a/LayoutTests/http/tests/inspector-protocol/resources/protocol-test.js b/LayoutTests/http/tests/inspector-protocol/resources/protocol-test.js
index 2de96c86b8020f18b67749c281901750e08e2e78..b3633d2372cd6329eafeb6bd11825cc13aedf2fa 100644
--- a/LayoutTests/http/tests/inspector-protocol/resources/protocol-test.js
+++ b/LayoutTests/http/tests/inspector-protocol/resources/protocol-test.js
@@ -22,6 +22,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+
var outputElement;
/**
@@ -57,7 +58,7 @@ function log(text)
function closeTest()
{
- window.internals.closeDummyInspectorFrontend();
+ closeInspector();
testRunner.notifyDone();
}
@@ -71,6 +72,16 @@ function runTest()
testRunner.waitUntilDone();
testRunner.setCanOpenWindows(true);
+ openInspector();
+}
+
+function closeInspector()
+{
+ window.internals.closeDummyInspectorFrontend();
+}
+
+function openInspector()
+{
var scriptTags = document.getElementsByTagName("script");
var scriptUrlBasePath = "";
for (var i = 0; i < scriptTags.length; ++i) {
@@ -81,8 +92,8 @@ function runTest()
}
}
- var url = scriptUrlBasePath + "/protocol-test.html";
- var inspectorFrontend = window.internals.openDummyInspectorFrontend(url);
+ var dummyFrontendURL = scriptUrlBasePath + "/protocol-test.html";
+ var inspectorFrontend = window.internals.openDummyInspectorFrontend(dummyFrontendURL);
inspectorFrontend.addEventListener("load", function(event) {
// FIXME: rename this 'test' global field across all tests.
var testFunction = window.test;
« no previous file with comments | « no previous file | LayoutTests/inspector-protocol/stylesheet-tracking-restart.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698