зеркало из https://github.com/mozilla/gecko-dev.git
Test for bug 541937 - Make test_bug541937.html not fail when the HTML5 parser is enabled. r=laurent.
This commit is contained in:
Родитель
052892ddaf
Коммит
dfeb213e0d
|
@ -1,8 +1,7 @@
|
|||
<!DOCTYPE html><html><head><meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||||
<html><head><meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||||
<title>Test</title>
|
||||
<link rel="Top" href=""> foo </link>
|
||||
|
||||
</head><body>
|
||||
<p>Hello world</p>
|
||||
</body>
|
||||
</html>
|
||||
</body></html>
|
|
@ -90,7 +90,7 @@ function testSerializer () {
|
|||
encoder.init(doc, "text/html", de.OutputLFLineBreak);
|
||||
encoder.setCharset("UTF-8");
|
||||
result = encoder.encodeToString();
|
||||
expected = '<!DOCTYPE HTML>\n<html><head><meta http-equiv=\"content-type\" content=\"text/html; \ncharset=UTF-8\">\n <title>Test</title>\n';
|
||||
expected = '<html><head><meta http-equiv=\"content-type\" content=\"text/html; \ncharset=UTF-8\">\n <title>Test</title>\n';
|
||||
expected += ' <link rel=\"Top\" href=\"\"> ';
|
||||
expected += ' </head><body>foo \n\n\n <p>Hello world</p>\n</body></html>';
|
||||
is(result, expected, "serialization of a link element with content, inside an html document");
|
||||
|
|
Загрузка…
Ссылка в новой задаче