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

Unified Diff: LayoutTests/http/tests/inspector-enabled/search/sources-search-scope.html

Issue 337783003: DevTools: Preload HTML documents content before fetching resource content. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaselined Created 6 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
Index: LayoutTests/http/tests/inspector-enabled/search/sources-search-scope.html
diff --git a/LayoutTests/http/tests/inspector-enabled/search/sources-search-scope.html b/LayoutTests/http/tests/inspector-enabled/search/sources-search-scope.html
index 5f557589b45abaa1b089e7524ab1a0b2facc8bdf..13fc6d9fe59afb3dd8f275b85e66edb23bd79b52 100644
--- a/LayoutTests/http/tests/inspector-enabled/search/sources-search-scope.html
+++ b/LayoutTests/http/tests/inspector-enabled/search/sources-search-scope.html
@@ -7,29 +7,22 @@
<script>
function onload()
{
- if (window.testRunner) {
+ if (window.testRunner)
testRunner.waitUntilDone();
- testRunner.showWebInspector();
- }
+ // Since this test could be run together with other inspector backend cache
+ // tests, we need to reset size limits to default ones.
+ resetInspectorResourcesData();
+ if (window.testRunner)
+ testRunner.showWebInspector();
runTest();
}
function test()
{
- InspectorTest.resetInspectorResourcesData(start);
-
- function start()
- {
- InspectorTest.reloadPage(step1);
- }
-
- function step1()
- {
- WebInspector.inspectorView.showPanel("sources");
- WebInspector.inspectorView.showViewInDrawer("search");
- InspectorTest.runAfterResourcesAreFinished(["search.html", "search.js", "search.css"], step2)
- }
+ WebInspector.inspectorView.showPanel("sources");
+ WebInspector.inspectorView.showViewInDrawer("search");
+ InspectorTest.runAfterResourcesAreFinished(["search.html", "search.js", "search.css"], step2)
function runSearchAndDumpResults(searchConfig, callback)
{

Powered by Google App Engine
This is Rietveld 408576698