summaryrefslogtreecommitdiff
path: root/Tools/DumpRenderTree/efl/DumpRenderTree.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/DumpRenderTree/efl/DumpRenderTree.cpp')
-rw-r--r--Tools/DumpRenderTree/efl/DumpRenderTree.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/Tools/DumpRenderTree/efl/DumpRenderTree.cpp b/Tools/DumpRenderTree/efl/DumpRenderTree.cpp
index ee26356ac..752945410 100644
--- a/Tools/DumpRenderTree/efl/DumpRenderTree.cpp
+++ b/Tools/DumpRenderTree/efl/DumpRenderTree.cpp
@@ -148,6 +148,11 @@ static bool shouldDumpAsText(const String& pathOrURL)
return pathOrURL.contains("dumpAsText/");
}
+static bool shouldOpenWebInspector(const String& pathOrURL)
+{
+ return pathOrURL.contains("inspector/");
+}
+
static void sendPixelResultsEOF()
{
puts("#EOF");
@@ -251,6 +256,9 @@ static void createLayoutTestController(const String& testURL, const String& expe
gLayoutTestController->setDumpFrameLoadCallbacks(true);
gLayoutTestController->setDeveloperExtrasEnabled(true);
+ if (shouldOpenWebInspector(testURL))
+ gLayoutTestController->showWebInspector();
+
gLayoutTestController->setDumpHistoryDelegateCallbacks(isGlobalHistoryTest(testURL));
if (shouldDumpAsText(testURL)) {