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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector-unit/trie-spec.js

Issue 2513423003: DevTools: Convert inspector-unit tests to use reusable test harness (Closed)
Patch Set: clean diff Created 4 years, 1 month 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: third_party/WebKit/LayoutTests/http/tests/inspector-unit/trie-spec.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector-unit/trie.html b/third_party/WebKit/LayoutTests/http/tests/inspector-unit/trie-spec.js
similarity index 94%
rename from third_party/WebKit/LayoutTests/http/tests/inspector-unit/trie.html
rename to third_party/WebKit/LayoutTests/http/tests/inspector-unit/trie-spec.js
index c6f5582c54c8bf0a01ca4ddcd76903affb0c9323..7a5b341fce3a4771eb351382e4f562890292ef0e 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector-unit/trie.html
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector-unit/trie-spec.js
@@ -1,11 +1,6 @@
-<html>
-<head>
-<base href="/inspector-debug/"></base>
-<script src="/inspector-debug/Runtime.js"></script>
-<script src="/inspector-unit/inspector-unit-test.js"></script>
-<script>
function test() {
var trie;
+ UnitTest.addResult(`Verify "trie" functionality.`);
UnitTest.runTests([
function testAddWord()
@@ -174,10 +169,4 @@ function test() {
{
UnitTest.addResult(`trie.longestPrefix("${word}", ${fullWordOnly}) = "${trie.longestPrefix(word, fullWordOnly)}"`);
}
-}
-</script>
-</head>
-<body>
-Verify "trie" functionality.
-</body>
-</html>
+}

Powered by Google App Engine
This is Rietveld 408576698