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

Unified Diff: third_party/WebKit/LayoutTests/fast/encoding/unlabelled-non-ascii-utf8-expected.html

Issue 1721373002: UTF-8 detector for pages missing encoding info (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: left out test files that should be landed manually Created 4 years, 8 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/unlabelled-non-ascii-utf8-expected.html
diff --git a/third_party/WebKit/LayoutTests/fast/frames/sandboxed-iframe-attribute-parsing-03.html b/third_party/WebKit/LayoutTests/fast/encoding/unlabelled-non-ascii-utf8-expected.html
similarity index 71%
copy from third_party/WebKit/LayoutTests/fast/frames/sandboxed-iframe-attribute-parsing-03.html
copy to third_party/WebKit/LayoutTests/fast/encoding/unlabelled-non-ascii-utf8-expected.html
index e2f3764aa2a4af7d383b8a6f0c1edd00a22fb430..511c0fbcfb7a703c11f71aee4197f421ae4ee110 100644
--- a/third_party/WebKit/LayoutTests/fast/frames/sandboxed-iframe-attribute-parsing-03.html
+++ b/third_party/WebKit/LayoutTests/fast/encoding/unlabelled-non-ascii-utf8-expected.html
@@ -1,12 +1,15 @@
<!DOCTYPE html>
<html>
-<head><meta charset="utf-8"/>
- <script src='resources/sandboxed-iframe-attribute-test.js'></script>
+<head>
+<title>Unlabelled UTF-8</title>
+<meta charset="utf-8">
</head>
<body>
- <p>Ridiculously long, invalid text (well, for these purposes at least)
- with non-ASCII characters surrounding attribute value</p>
- <iframe sandbox="
+ <p>UTF-8 page without a proper label. UTF-8 encoding detector
+ should come into action to detect the right encoding, hence
+ all the non-ASCII chars should be rendered as expected without
+ being garbled.</p>
+ <pre>
För var vers, jag gör,
Lovar du en kyss mig giva;
Arket fullt jag borde skriva,
@@ -33,16 +36,13 @@
In i hamnen vill jag styra,
Därföre till godo tag
Denna gång med tjugofyra.
-
+
'Kyssarna' ('The kisses'), Esaias Tegnér, 1782-1846
- allow-scripts allow-same-origin
-
int main(void)
{
return 0;
- }"
- src="resources/sandboxed-iframe-attribute-parsing-allowed.html">
- </iframe>
+ }
+ </pre>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698