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

Unified Diff: LayoutTests/inspector/documentation-url-provider.html

Issue 447703002: DocumentationURLProvider class created (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@semen
Patch Set: Tests added; rebased on 444883003 issue Created 6 years, 4 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/documentation-url-provider.html
diff --git a/LayoutTests/inspector/documentation-url-provider.html b/LayoutTests/inspector/documentation-url-provider.html
new file mode 100644
index 0000000000000000000000000000000000000000..128f091d8c5d881b4268b1f5e5646813d5daddc3
--- /dev/null
+++ b/LayoutTests/inspector/documentation-url-provider.html
@@ -0,0 +1,31 @@
+<html>
+<head>
+<script src="../http/tests/inspector/inspector-test.js"></script>
+<script>
+
+function test()
+{
+ WebInspector.moduleManager.registerModule("documentation");
+ WebInspector.moduleManager.loadModule("documentation");
+ var testCases = [
+ "max",
+ "insertBefore",
+ "eval",
+ "stringify",
+ "isArray",
+ "now",
+ "fromCharCode",
lushnikov 2014/08/06 17:27:51 These are all methods that exist. Let's add some t
semeny 2014/08/07 09:57:08 Done.
+ "keys"];
lushnikov 2014/08/06 17:27:51 "];" on a new line
semeny 2014/08/07 09:57:08 Done.
+ for (var i = 0; i < testCases.length; i++) {
lushnikov 2014/08/06 17:27:51 ++i
semeny 2014/08/07 09:57:08 Done.
+ var urlFormer = new WebInspector.DocumentationURLProvider();
lushnikov 2014/08/06 17:27:51 do we really need to recreate it for every for-loo
semeny 2014/08/07 09:57:08 Done.
+ InspectorTest.addResult("Property " + testCases[i] + ":");
+ InspectorTest.addResult(urlFormer.formItemPath(testCases[i]));
+ }
+ InspectorTest.completeTest();
+}
+
+</script>
+</head>
+<body onload="runTest()">
lushnikov 2014/08/06 17:27:51 We usually add a short test description in <body>
semeny 2014/08/07 09:57:08 Done.
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698