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

Unified Diff: LayoutTests/inspector/extensions/multiple-extensions.html

Issue 971703002: DevTools: fix co-existance of multiple DevTools extensions (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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/inspector/extensions/multiple-extensions.html
diff --git a/LayoutTests/inspector/extensions/multiple-extensions.html b/LayoutTests/inspector/extensions/multiple-extensions.html
new file mode 100644
index 0000000000000000000000000000000000000000..fdfae56c0cc18f5b6b9c853f38330e629b4ed6d2
--- /dev/null
+++ b/LayoutTests/inspector/extensions/multiple-extensions.html
@@ -0,0 +1,42 @@
+<html>
+<head>
+<script src="../../http/tests/inspector/inspector-test.js"></script>
+<script src="../../http/tests/inspector/extensions-test.js"></script>
+<script type="text/javascript">
+function initialize_multipleExtensionsTest()
+{
+
+var pendingTestCount = 2;
+InspectorTest.extensionTestComplete = function()
+{
+ if (--pendingTestCount)
+ InspectorTest.runExtensionTests();
+ else
+ InspectorTest.completeTest();
+}
+
+}
+
+function extension_testCreatePanel(nextTest)
+{
+ function onPanelCreated(panel)
+ {
+ output("Panel created");
+ dumpObject(panel);
+ nextTest();
+ }
+ var basePath = location.pathname.replace(/\/[^/]*$/, "/");
+ webInspector.panels.create("Test Panel", basePath + "extension-panel.png", basePath + "extension-panel.html", onPanelCreated);
+}
+
+function extension_onTestsDone()
+{
+ evaluateOnFrontend("InspectorTest.extensionTestComplete();");
+}
+
+</script>
+</head>
+<body onload="runTest()">
+<p>Tests co-existance of multiple DevTools extensions</p>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698