Test for bug 659763 - Make document.open("text/plain") work with the new parser. r=bzbarsky.

This commit is contained in:
Henri Sivonen 2011-11-01 17:27:36 +02:00
parent 7b60462692
commit f06d46b94e
13 changed files with 72 additions and 0 deletions

View File

@ -0,0 +1,2 @@
<!DOCTYPE html>
<iframe src="data:text/plain,<i>foo</i>"></iframe>

View 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>

View File

@ -0,0 +1,2 @@
<!DOCTYPE html>
<iframe src="data:text/plain,<i>foo</i>"></iframe>

View 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>

View File

@ -0,0 +1,2 @@
<!DOCTYPE html>
<iframe src="data:text/plain,<i>foo</i>"></iframe>

View 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>

View File

@ -0,0 +1,2 @@
<!DOCTYPE html>
<iframe src="data:text/html,<i>foo</i>"></iframe>

View 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>

View File

@ -0,0 +1,2 @@
<!DOCTYPE html>
<iframe src="data:text/html,<i>foo</i>"></iframe>

View 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>

View File

@ -0,0 +1,2 @@
<!DOCTYPE html>
<iframe src="data:text/html,<i>foo</i>"></iframe>

View 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>

View File

@ -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