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

Unified Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/html/syntax/parsing/common.js

Issue 1984023002: Move web-platform-tests to wpt (part 1 of 2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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: third_party/WebKit/LayoutTests/imported/web-platform-tests/html/syntax/parsing/common.js
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/syntax/parsing/common.js b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/syntax/parsing/common.js
deleted file mode 100644
index b3ac9ece70c433f2b01fe8ad18afcf98d3042b32..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/syntax/parsing/common.js
+++ /dev/null
@@ -1,24 +0,0 @@
-function mark_diffs(expected, actual) {
- var expected_lines = expected.split("\n");
- var actual_lines = actual.split("\n");
-
- var max_length = Math.max(expected_lines.length, actual_lines.length);
-
- var expected_diff = ["code", {}];
- var actual_diff = ["code", {}];
-
- for (var i=0; i<max_length; i++) {
- if (expected_lines[i] === actual_lines[i]) {
- expected_diff.push(expected_lines[i] + "\n");
- actual_diff.push(actual_lines[i] + "\n");
- } else {
- if (expected_lines[i]) {
- expected_diff.push(["span", {style:"color:red"}, expected_lines[i] + "\n"]);
- }
- if (actual_lines[i]) {
- actual_diff.push(["span", {style:"color:red"}, actual_lines[i] + "\n"]);
- }
- }
- }
- return [expected_diff, actual_diff];
-}

Powered by Google App Engine
This is Rietveld 408576698