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

Unified Diff: third_party/WebKit/LayoutTests/inspector/diff-module.html

Issue 2493373002: DevTools: rename WebInspector into modules. (Closed)
Patch Set: for bots 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/inspector/diff-module.html
diff --git a/third_party/WebKit/LayoutTests/inspector/diff-module.html b/third_party/WebKit/LayoutTests/inspector/diff-module.html
index 72d8beef69480b450cfc8f12c02229b49210c351..52d8701dc48c4bb7cf7753aec7fa49d660930952 100644
--- a/third_party/WebKit/LayoutTests/inspector/diff-module.html
+++ b/third_party/WebKit/LayoutTests/inspector/diff-module.html
@@ -10,12 +10,12 @@ function initialize_DiffTest()
function test()
{
- print(WebInspector.Diff.charDiff("test this sentence.", "test that sentence"));
- print(WebInspector.Diff.lineDiff(["test this sentence."], ["test that sentence"]));
- print(WebInspector.Diff.lineDiff(["a", "b", "c"], ["a", "c"]));
- print(WebInspector.Diff.lineDiff(["a", "b", "c"], ["b", "a", "c"]));
- print(WebInspector.Diff.lineDiff(["a", "c"], ["a", "b", "c"]));
- print(WebInspector.Diff.lineDiff(
+ print(Diff.Diff.charDiff("test this sentence.", "test that sentence"));
+ print(Diff.Diff.lineDiff(["test this sentence."], ["test that sentence"]));
+ print(Diff.Diff.lineDiff(["a", "b", "c"], ["a", "c"]));
+ print(Diff.Diff.lineDiff(["a", "b", "c"], ["b", "a", "c"]));
+ print(Diff.Diff.lineDiff(["a", "c"], ["a", "b", "c"]));
+ print(Diff.Diff.lineDiff(
[
"for (var i = 0; i < 100; i++) {",
" willBeLeftAlone()",
@@ -42,13 +42,13 @@ function test()
for (var i = 0; i < results.length; i++) {
var result = results[i];
var type = "Unknown";
- if (result[0] === WebInspector.Diff.Operation.Equal)
+ if (result[0] === Diff.Diff.Operation.Equal)
type = "=";
- else if (result[0] === WebInspector.Diff.Operation.Insert)
+ else if (result[0] === Diff.Diff.Operation.Insert)
type = "+";
- else if (result[0] === WebInspector.Diff.Operation.Delete)
+ else if (result[0] === Diff.Diff.Operation.Delete)
type = "-";
- else if (result[0] === WebInspector.Diff.Operation.Edit)
+ else if (result[0] === Diff.Diff.Operation.Edit)
type = "E";
InspectorTest.addResult(type + ": " + JSON.stringify(result[1], null, 4));
}

Powered by Google App Engine
This is Rietveld 408576698