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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/Window/invalid-protocol.html

Issue 2697213002: Do not guess UTF8 encoding (Closed)
Patch Set: webkit layout htmls Created 3 years, 10 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html> 2 <html>
3 <head> 3 <head>
4 <meta charset="utf-8"/>
4 <script src="../../../resources/js-test.js"></script> 5 <script src="../../../resources/js-test.js"></script>
5 </head> 6 </head>
6 <body> 7 <body>
7 <script> 8 <script>
8 description("Test URL protocol setter."); 9 description("Test URL protocol setter.");
9 10
10 var a = document.createElement("a"); 11 var a = document.createElement("a");
11 a.setAttribute("href", "http://www.apple.com/"); 12 a.setAttribute("href", "http://www.apple.com/");
12 document.body.appendChild(a); 13 document.body.appendChild(a);
13 14
(...skipping 14 matching lines...) Expand all
28 shouldBe("a.href", "'https://www.apple.com/'"); 29 shouldBe("a.href", "'https://www.apple.com/'");
29 30
30 a.protocol = "http:"; 31 a.protocol = "http:";
31 shouldBe("a.href", "'http://www.apple.com/'"); 32 shouldBe("a.href", "'http://www.apple.com/'");
32 33
33 a.protocol = "https://foobar"; 34 a.protocol = "https://foobar";
34 shouldBe("a.href", "'https://www.apple.com/'"); 35 shouldBe("a.href", "'https://www.apple.com/'");
35 </script> 36 </script>
36 </body> 37 </body>
37 </html> 38 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698