mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Test for bug 659763 - Make document.open("text/plain") work with the new parser. r=bzbarsky.
This commit is contained in:
parent
7b60462692
commit
f06d46b94e
2
parser/htmlparser/tests/reftest/bug659763-1-ref.html
Normal file
2
parser/htmlparser/tests/reftest/bug659763-1-ref.html
Normal file
@ -0,0 +1,2 @@
|
||||
<!DOCTYPE html>
|
||||
<iframe src="data:text/plain,<i>foo</i>"></iframe>
|
9
parser/htmlparser/tests/reftest/bug659763-1.html
Normal file
9
parser/htmlparser/tests/reftest/bug659763-1.html
Normal file
@ -0,0 +1,9 @@
|
||||
<!DOCTYPE html>
|
||||
<iframe></iframe>
|
||||
<script>
|
||||
var iframe = document.getElementsByTagName("iframe")[0];
|
||||
var doc = iframe.contentDocument;
|
||||
doc.open("text/plain");
|
||||
doc.write("<i>foo</i>");
|
||||
doc.close();
|
||||
</script>
|
2
parser/htmlparser/tests/reftest/bug659763-2-ref.html
Normal file
2
parser/htmlparser/tests/reftest/bug659763-2-ref.html
Normal file
@ -0,0 +1,2 @@
|
||||
<!DOCTYPE html>
|
||||
<iframe src="data:text/plain,<i>foo</i>"></iframe>
|
9
parser/htmlparser/tests/reftest/bug659763-2.html
Normal file
9
parser/htmlparser/tests/reftest/bug659763-2.html
Normal file
@ -0,0 +1,9 @@
|
||||
<!DOCTYPE html>
|
||||
<iframe></iframe>
|
||||
<script>
|
||||
var iframe = document.getElementsByTagName("iframe")[0];
|
||||
var doc = iframe.contentDocument;
|
||||
doc.open("TEXT/PLAIN");
|
||||
doc.write("<i>foo</i>");
|
||||
doc.close();
|
||||
</script>
|
2
parser/htmlparser/tests/reftest/bug659763-3-ref.html
Normal file
2
parser/htmlparser/tests/reftest/bug659763-3-ref.html
Normal file
@ -0,0 +1,2 @@
|
||||
<!DOCTYPE html>
|
||||
<iframe src="data:text/plain,<i>foo</i>"></iframe>
|
9
parser/htmlparser/tests/reftest/bug659763-3.html
Normal file
9
parser/htmlparser/tests/reftest/bug659763-3.html
Normal file
@ -0,0 +1,9 @@
|
||||
<!DOCTYPE html>
|
||||
<iframe></iframe>
|
||||
<script>
|
||||
var iframe = document.getElementsByTagName("iframe")[0];
|
||||
var doc = iframe.contentDocument;
|
||||
doc.open("foo/bar");
|
||||
doc.write("<i>foo</i>");
|
||||
doc.close();
|
||||
</script>
|
2
parser/htmlparser/tests/reftest/bug659763-4-ref.html
Normal file
2
parser/htmlparser/tests/reftest/bug659763-4-ref.html
Normal file
@ -0,0 +1,2 @@
|
||||
<!DOCTYPE html>
|
||||
<iframe src="data:text/html,<i>foo</i>"></iframe>
|
9
parser/htmlparser/tests/reftest/bug659763-4.html
Normal file
9
parser/htmlparser/tests/reftest/bug659763-4.html
Normal file
@ -0,0 +1,9 @@
|
||||
<!DOCTYPE html>
|
||||
<iframe></iframe>
|
||||
<script>
|
||||
var iframe = document.getElementsByTagName("iframe")[0];
|
||||
var doc = iframe.contentDocument;
|
||||
doc.open("text/html");
|
||||
doc.write("<i>foo</i>");
|
||||
doc.close();
|
||||
</script>
|
2
parser/htmlparser/tests/reftest/bug659763-5-ref.html
Normal file
2
parser/htmlparser/tests/reftest/bug659763-5-ref.html
Normal file
@ -0,0 +1,2 @@
|
||||
<!DOCTYPE html>
|
||||
<iframe src="data:text/html,<i>foo</i>"></iframe>
|
9
parser/htmlparser/tests/reftest/bug659763-5.html
Normal file
9
parser/htmlparser/tests/reftest/bug659763-5.html
Normal file
@ -0,0 +1,9 @@
|
||||
<!DOCTYPE html>
|
||||
<iframe></iframe>
|
||||
<script>
|
||||
var iframe = document.getElementsByTagName("iframe")[0];
|
||||
var doc = iframe.contentDocument;
|
||||
doc.open();
|
||||
doc.write("<i>foo</i>");
|
||||
doc.close();
|
||||
</script>
|
2
parser/htmlparser/tests/reftest/bug659763-6-ref.html
Normal file
2
parser/htmlparser/tests/reftest/bug659763-6-ref.html
Normal file
@ -0,0 +1,2 @@
|
||||
<!DOCTYPE html>
|
||||
<iframe src="data:text/html,<i>foo</i>"></iframe>
|
9
parser/htmlparser/tests/reftest/bug659763-6.html
Normal file
9
parser/htmlparser/tests/reftest/bug659763-6.html
Normal file
@ -0,0 +1,9 @@
|
||||
<!DOCTYPE html>
|
||||
<iframe></iframe>
|
||||
<script>
|
||||
var iframe = document.getElementsByTagName("iframe")[0];
|
||||
var doc = iframe.contentDocument;
|
||||
doc.open("TEXT/HTML");
|
||||
doc.write("<i>foo</i>");
|
||||
doc.close();
|
||||
</script>
|
@ -6,6 +6,12 @@
|
||||
== bug608373-1.html bug608373-1-ref.html
|
||||
== view-source:bug482921-1.html bug482921-1-ref.html
|
||||
== view-source:bug482921-2.xhtml bug482921-2-ref.html
|
||||
== bug659763-1.html bug659763-1-ref.html
|
||||
== bug659763-2.html bug659763-2-ref.html
|
||||
== bug659763-3.html bug659763-3-ref.html
|
||||
== bug659763-4.html bug659763-4-ref.html
|
||||
== bug659763-5.html bug659763-5-ref.html
|
||||
== bug659763-6.html bug659763-6-ref.html
|
||||
== view-source:bug673094-1.html view-source:bug673094-1-ref.html
|
||||
== bug696651-1.html bug696651-1-ref.html
|
||||
== bug696651-2.html bug696651-2-ref.html
|
||||
|
Loading…
Reference in New Issue
Block a user