summaryrefslogtreecommitdiffstats
path: root/content/test/data
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-21 18:30:03 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-21 18:30:03 +0000
commit52b44adce3783c0fdb66ceb2f6e15a9500b0dcad (patch)
tree24d8e9d86a5425536c95b477ff087cc7c5773ebf /content/test/data
parentfbc4320142c0edbd17c1baf544169977b4e31fbf (diff)
downloadchromium_src-52b44adce3783c0fdb66ceb2f6e15a9500b0dcad.zip
chromium_src-52b44adce3783c0fdb66ceb2f6e15a9500b0dcad.tar.gz
chromium_src-52b44adce3783c0fdb66ceb2f6e15a9500b0dcad.tar.bz2
Copy test data since it won't apply in try bots. BUG=126514
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195423 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/test/data')
-rw-r--r--content/test/data/dom_serializer/html_doc_has_base_tag.htm13
-rw-r--r--content/test/data/dom_serializer/iframe-src-is-exe.htm8
-rw-r--r--content/test/data/dom_serializer/non_html_namespace.htm13
-rw-r--r--content/test/data/dom_serializer/nonstandard_htmlentities.htm1
-rw-r--r--content/test/data/dom_serializer/note.html5
-rw-r--r--content/test/data/dom_serializer/note.xml7
-rw-r--r--content/test/data/dom_serializer/youtube_1.htm19
-rw-r--r--content/test/data/dom_serializer/youtube_2.htm17
8 files changed, 83 insertions, 0 deletions
diff --git a/content/test/data/dom_serializer/html_doc_has_base_tag.htm b/content/test/data/dom_serializer/html_doc_has_base_tag.htm
new file mode 100644
index 0000000..f2b43d8
--- /dev/null
+++ b/content/test/data/dom_serializer/html_doc_has_base_tag.htm
@@ -0,0 +1,13 @@
+<html>
+<head>
+<base href="http://www.youtube.com">
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+<script>
+document.write("<base href=\"http://www.youtube.com\">");
+</script>
+</head>
+<body>
+<a href="/signup">Sign Up</a>
+<a href="/forgot_username?next=/">Forgot Username</a>
+</body>
+</html>
diff --git a/content/test/data/dom_serializer/iframe-src-is-exe.htm b/content/test/data/dom_serializer/iframe-src-is-exe.htm
new file mode 100644
index 0000000..ed32b12
--- /dev/null
+++ b/content/test/data/dom_serializer/iframe-src-is-exe.htm
@@ -0,0 +1,8 @@
+<html>
+<body>
+This tests that we can serialize a page that has a downloaded url in an iframe without crashing.
+
+<iframe src="dummy.exe"></iframe>
+
+</body>
+</html> \ No newline at end of file
diff --git a/content/test/data/dom_serializer/non_html_namespace.htm b/content/test/data/dom_serializer/non_html_namespace.htm
new file mode 100644
index 0000000..ec3a50a
--- /dev/null
+++ b/content/test/data/dom_serializer/non_html_namespace.htm
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+<body>
+<script>
+window.onload = function() {
+ var input = document.createElementNS("urn:x-foo", "input");
+ input.setAttribute("type", "image");
+ input.setAttribute("src", "bar.png");
+ document.body.appendChild(input);
+};
+</script>
+</body>
+</html>
diff --git a/content/test/data/dom_serializer/nonstandard_htmlentities.htm b/content/test/data/dom_serializer/nonstandard_htmlentities.htm
new file mode 100644
index 0000000..17cd529
--- /dev/null
+++ b/content/test/data/dom_serializer/nonstandard_htmlentities.htm
@@ -0,0 +1 @@
+<HTML><BODY title="&percnt;&nsup;&sup1;&apos;">&percnt;&nsup;&sup1;&apos;</BODY></HTML>
diff --git a/content/test/data/dom_serializer/note.html b/content/test/data/dom_serializer/note.html
new file mode 100644
index 0000000..69b83a6
--- /dev/null
+++ b/content/test/data/dom_serializer/note.html
@@ -0,0 +1,5 @@
+<html>
+ <body>
+ <iframe src="note.xml"></iframe>
+ </body>
+</html>
diff --git a/content/test/data/dom_serializer/note.xml b/content/test/data/dom_serializer/note.xml
new file mode 100644
index 0000000..cef4920
--- /dev/null
+++ b/content/test/data/dom_serializer/note.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<note>
+<to>&lt;Johnny&gt;</to>
+<from>&lt;Boss&gt;</from>
+<heading>Reminder</heading>
+<body>Get "review" and 'check' in code!</body>
+</note> \ No newline at end of file
diff --git a/content/test/data/dom_serializer/youtube_1.htm b/content/test/data/dom_serializer/youtube_1.htm
new file mode 100644
index 0000000..0e1f92a
--- /dev/null
+++ b/content/test/data/dom_serializer/youtube_1.htm
@@ -0,0 +1,19 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
+<html lang="en">
+<head>
+ <title>YouTube - Broadcast Yourself.</title>
+ <link rel="stylesheet" href="file:///c:/yt/css/base_all-vfl36460.css" type="text/css">
+ <link rel="search" type="application/opensearchdescription+xml" href="http://www.youtube.com/opensearch?locale=en_US" title="YouTube Video Search">
+ <link rel="icon" href="http://s.ytimg.com/yt/favicon-vfl1123.ico" type="image/x-icon">
+ <link rel="shortcut icon" href="http://s.ytimg.com/yt/favicon-vfl1123.ico" type="image/x-icon">
+ <meta name="description" content="Share your videos with friends and family">
+ <meta name="keywords" content="video,sharing,camera phone,video phone">
+ <link rel="alternate" type="application/rss+xml" title="YouTube - [RSS]" href="/rssls">
+ <link rel="alternate" media="handheld" href="http://m.youtube.com">
+ <script type="text/javascript" src="file:///c:/yt/js/base_all_with_bidi-vfl36451.js"></script>
+</head>
+<body>
+ <div id="baseDiv"><img src="file:///c:/yt/img/pixel-vfl73.gif" width="132" height="63" border="0" alt=""/>contents in youtube_1</div>
+ <iframe width="300" height="300" src="./youtube_2.htm">
+</body>
+</html>
diff --git a/content/test/data/dom_serializer/youtube_2.htm b/content/test/data/dom_serializer/youtube_2.htm
new file mode 100644
index 0000000..790dad6
--- /dev/null
+++ b/content/test/data/dom_serializer/youtube_2.htm
@@ -0,0 +1,17 @@
+<html lang="en">
+<head>
+ <title>YouTube - Broadcast Yourself.</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <link rel="search" type="application/opensearchdescription+xml" href="http://www.youtube.com/opensearch?locale=en_US" title="YouTube Video Search">
+ <link rel="icon" href="http://s.ytimg.com/yt/favicon-vfl1123.ico" type="image/x-icon">
+ <link rel="shortcut icon" href="http://s.ytimg.com/yt/favicon-vfl1123.ico" type="image/x-icon">
+ <meta http-equiv="Content-Type" content="text/html; charset=GB2312">
+ <meta name="description" content="Share your videos with friends and family">
+ <meta name="keywords" content="video,sharing,camera phone,video phone">
+ <link rel="alternate" type="application/rss+xml" title="YouTube - [RSS]" href="/rssls">
+ <link rel="alternate" media="handheld" href="http://m.youtube.com">
+</head>
+<body>
+ <div id="baseDiv">contents in youtube_2</div>
+</body>
+</html>