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

Side by Side Diff: LayoutTests/imported/web-platform-tests/encoding/iso-2022-jp-encoder.html

Issue 727883002: update-w3c-deps import using blink 7f8c8ee3e30dc15b7b821c627fc7ac32331d2253: (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!doctype html>
2 <meta charset=iso-2022-jp> <!-- if the server overrides this, it is stupid, as this is a testsuite -->
3 <script src=../../../resources/testharness.js></script>
4 <script src=../../../resources/testharnessreport.js></script>
5 <div id=log></div>
6 <script>
7 function encode(input, output, desc) {
8 test(function() {
9 var a = document.createElement("a") // <a> uses document encoding for URL's query
10 a.href = "https://example.com/?" + input
11 assert_equals(a.search.substr(1), output) // remove leading "?"
12 }, "iso-2022-jp encoder: " + desc)
13 }
14
15 encode("s", "s", "very basic")
16 encode("\u00A5\u203Es\\\uFF90\u4F69", "%1B(J\\~s%1B(B\\%1B$B%_PP%1B(B", "basics ")
17 encode("\x0E\x0F\x1Bx", "%0E%0F%1Bx", "SO/SI ESC")
18 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698