summaryrefslogtreecommitdiffstats
path: root/Source/WebKit/chromium/tests/data
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebKit/chromium/tests/data')
-rw-r--r--Source/WebKit/chromium/tests/data/pageserialization/awesome.png1
-rw-r--r--Source/WebKit/chromium/tests/data/pageserialization/embed_iframe.html5
-rw-r--r--Source/WebKit/chromium/tests/data/pageserialization/object_iframe.html5
-rw-r--r--Source/WebKit/chromium/tests/data/pageserialization/simple_iframe.html14
-rw-r--r--Source/WebKit/chromium/tests/data/pageserialization/simple_page.html50
-rwxr-xr-xSource/WebKit/chromium/tests/data/pageserialization/top_frame.html28
6 files changed, 103 insertions, 0 deletions
diff --git a/Source/WebKit/chromium/tests/data/pageserialization/awesome.png b/Source/WebKit/chromium/tests/data/pageserialization/awesome.png
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/Source/WebKit/chromium/tests/data/pageserialization/awesome.png
@@ -0,0 +1 @@
+
diff --git a/Source/WebKit/chromium/tests/data/pageserialization/embed_iframe.html b/Source/WebKit/chromium/tests/data/pageserialization/embed_iframe.html
new file mode 100644
index 0000000..174a8a9
--- /dev/null
+++ b/Source/WebKit/chromium/tests/data/pageserialization/embed_iframe.html
@@ -0,0 +1,5 @@
+<html>
+
+<img src="embed.png"/>
+
+</html>
diff --git a/Source/WebKit/chromium/tests/data/pageserialization/object_iframe.html b/Source/WebKit/chromium/tests/data/pageserialization/object_iframe.html
new file mode 100644
index 0000000..662bc5f
--- /dev/null
+++ b/Source/WebKit/chromium/tests/data/pageserialization/object_iframe.html
@@ -0,0 +1,5 @@
+<html>
+
+<img src="object.png"/>
+
+</html>
diff --git a/Source/WebKit/chromium/tests/data/pageserialization/simple_iframe.html b/Source/WebKit/chromium/tests/data/pageserialization/simple_iframe.html
new file mode 100644
index 0000000..65dca17
--- /dev/null
+++ b/Source/WebKit/chromium/tests/data/pageserialization/simple_iframe.html
@@ -0,0 +1,14 @@
+<html>
+<!--
+ This page is used to test that WebPageSerializer::retrieveAllResources retrieves
+ correctly the expected resources when dealing with multiple frames.
+-->
+
+<body>
+
+<img src="awesome.png"/>
+<img src="innerFrame.png"/>
+
+</body>
+
+</html>
diff --git a/Source/WebKit/chromium/tests/data/pageserialization/simple_page.html b/Source/WebKit/chromium/tests/data/pageserialization/simple_page.html
new file mode 100644
index 0000000..66d09e1
--- /dev/null
+++ b/Source/WebKit/chromium/tests/data/pageserialization/simple_page.html
@@ -0,0 +1,50 @@
+<html>
+<!--
+ This page is used to test that WebPageSerializer::retrieveAllResources retrieves
+ correctly the expected resources from various HTML nodes.
+-->
+
+<head>
+<!-- Style sheet links should be retrieved -->
+<link rel="stylesheet" type="text/css" href="http://www.example.com/beautifull.css"/>
+<!-- Other link should NOT be retrieved -->
+<link rel="copyright" type="text/plain" href="http://www.example.com/copyright"/>
+<!-- Scripts should be retrieved -->
+<script src="awesome.js"></script>
+</head>
+
+<!-- Images are always retrieved -->
+<body background="bodyBackground.jpg">
+
+<!-- Twice to make sure we only report each resource once -->
+<img src="awesome.png"/>
+<img src="awesome.png"/>
+
+<form>
+ <input type="image" src="imageButton.png"/>
+</form>
+
+<table background="tableBackground.png">
+ <tr background="trBackground.png">
+ <td background="tdBackground.png"></td>
+ </tr>
+ <tr background="trBackground.png">
+ <td background="tdBackground.png"></td>
+ </tr>
+</table>
+
+<!-- Some more obscure tags -->
+<blockquote cite="http://www.evene.fr/citations/auteur.php?ida=46"></blockquote>
+<q CITE="http://www.brainyquote.com/quotes/authors/c/charles_darwin.html"></q>
+<p>My favorite color is <del cite="why_deleted.html">blue</del> <ins>red</ins>!</p>
+<p>My favorite color is <del>blue</del> <ins cite="why_inserted.html">red</ins>!</p>
+
+<!-- Make sure we only retrieve URLs with the right schemes -->
+<img src="https://www.secure.com/https.gif"/> <!-- HTTPS is OK -->
+<img src="file://c/my_folder/file.gif"/> <!-- file is OK -->
+<img src="ftp://ftp.com/ftp.gif"/> <!-- FTP is not OK -->
+<img src="unknown://unkown.com/unknown.gif"/> <!-- Unknown schemes are not OK -->
+
+</body>
+
+</html>
diff --git a/Source/WebKit/chromium/tests/data/pageserialization/top_frame.html b/Source/WebKit/chromium/tests/data/pageserialization/top_frame.html
new file mode 100755
index 0000000..edc8ab2
--- /dev/null
+++ b/Source/WebKit/chromium/tests/data/pageserialization/top_frame.html
@@ -0,0 +1,28 @@
+<html>
+<!--
+ This page is used to test that WebPageSerializer::retrieveAllResources retrieves
+ correctly the expected resources when dealing with multiple frames.
+-->
+
+<body>
+
+<!-- Resources used by a frame and a tag should be only reported once -->
+<iframe src="awesome.png"></iframe>
+<img src="awesome.png"/>
+
+<iframe src="simple_iframe.html"></iframe>
+<iframe src="simple_iframe.html"></iframe>
+
+<!-- Object tags can be used to create iframes -->
+
+<object data="object_iframe.html"></object>
+<object data="flash.swf"></object>
+
+<!-- Embed tags can be used to create iframes as well -->
+<embed src="embed_iframe.html"></object>
+<!--
+<embed src="music.mid"></embed>
+-->
+</body>
+
+</html>