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

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

Issue 267393003: DevTools: Load document (html) content from disk cache in page agent enabling. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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/search/sources-search-scope.html b/LayoutTests/http/tests/inspector-enabled/search/sources-search-scope.html
similarity index 89%
rename from LayoutTests/http/tests/inspector/search/sources-search-scope.html
rename to LayoutTests/http/tests/inspector-enabled/search/sources-search-scope.html
index 176ab2a99b803a6011a9b234196d4aa28e02c40f..71d57421b780e4f308f679103ed1bd8c650ba459 100644
--- a/LayoutTests/http/tests/inspector/search/sources-search-scope.html
+++ b/LayoutTests/http/tests/inspector-enabled/search/sources-search-scope.html
@@ -1,19 +1,23 @@
<html>
<head>
<title>Change inspected iframe's "src" attribute.</title>
-<script src="../inspector-test.js"></script>
-<script src="../resources-test.js"></script>
+<script src="../../inspector/inspector-test.js"></script>
+<script src="../../inspector/resources-test.js"></script>
<script>
-function test()
+function onload()
{
- InspectorTest.reloadPage(step1);
-
- function step1()
- {
- WebInspector.inspectorView.showPanel("sources");
- WebInspector.inspectorView.showViewInDrawer("search");
- InspectorTest.runAfterResourcesAreFinished(["search.html", "search.js", "search.css"], step2)
+ if (window.testRunner) {
+ testRunner.waitUntilDone();
+ testRunner.showWebInspector();
}
+ runTest();
+}
+
+function test()
+{
+ WebInspector.inspectorView.showPanel("sources");
+ WebInspector.inspectorView.showViewInDrawer("search");
+ InspectorTest.runAfterResourcesAreFinished(["search.html", "search.js", "search.css"], step2)
function runSearchAndDumpResults(searchConfig, callback)
{
@@ -131,8 +135,8 @@ function test()
</script>
</head>
-<body onload="runTest()">
-<iframe src="resources/search.html">
+<body onload="onload()">
+<iframe src="../../inspector/search/resources/search.html">
<p>Tests that ScriptSearchScope performs search across all sources correctly.</p>
See <a href="https://bugs.webkit.org/show_bug.cgi?id=41350">bug 41350</a>.
</body>

Powered by Google App Engine
This is Rietveld 408576698