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

Unified Diff: third_party/WebKit/LayoutTests/fast/encoding/char-encoding.html

Issue 2390083002: Text Encoding: Convert fast/encoding tests to testharness.js (Closed)
Patch Set: Review feedback Created 4 years, 2 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/fast/encoding/char-encoding.html
diff --git a/third_party/WebKit/LayoutTests/fast/encoding/char-encoding.html b/third_party/WebKit/LayoutTests/fast/encoding/char-encoding.html
index 31632cef6c1f6e74f2f140087d090f6303ce2ac4..34b48ffd683427ef8702ead8b53718146c3be01a 100644
--- a/third_party/WebKit/LayoutTests/fast/encoding/char-encoding.html
+++ b/third_party/WebKit/LayoutTests/fast/encoding/char-encoding.html
@@ -1,24 +1,13 @@
-<html>
-<head>
-<script src="../../resources/js-test.js"></script>
+<!DOCTYPE html>
+<title>Character Encoding</title>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
<script src="resources/char-encoding-utils.js"></script>
-</head>
<body>
-<form id="form" method="GET" target="subframe"><input type="text" id="text" name="text"></form>
-<iframe id="subframe" name="subframe"></iframe>
<script>
-
-var charsets = new Array;
-var unicodes = new Array;
-var expectedResults = new Array;
-
-var results = new Object;
-
-var i = 0;
-
-
testEncode("UTF-8", "U+00A0", "%C2%A0");
+testEncode('UTF-8', 'U+221A', '%E2%88%9A');
// Unpaired UTF-16 surrogates
testEncode("UTF-8", "0xD800", "%EF%BF%BD"); // U+FFFD (REPLACEMENT CHARACTER)
@@ -69,13 +58,5 @@ testEncode("iso-2022-cn", "U+00A0", "%C2%A0");
testEncode("iso-2022-cn-ext", "U+00A0", "%C2%A0");
testEncode("iso-2022-kr", "U+00A0", "%C2%A0");
-// Turning on this test causes a download to occur. FIXME: A bug?
-// testEncode('UTF-8', 'U+221A', '%E2%88%9A');
-
-if (window.testRunner)
- testRunner.waitUntilDone();
-runTest();
-
</script>
</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698