Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2993)

Unified Diff: Source/web/tests/data/pageserializer/elements/elements.html

Issue 1172303002: Merge page serializers [9/12] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rename text.txt to empty.txt Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/web/tests/PageSerializerTest.cpp ('k') | Source/web/tests/data/pageserializer/elements/empty.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/tests/data/pageserializer/elements/elements.html
diff --git a/Source/web/tests/data/pageserializer/elements/elements.html b/Source/web/tests/data/pageserializer/elements/elements.html
new file mode 100644
index 0000000000000000000000000000000000000000..8c2473fb4c93132df9749b7e69b2dcf56010d5b6
--- /dev/null
+++ b/Source/web/tests/data/pageserializer/elements/elements.html
@@ -0,0 +1,45 @@
+<!-- This page is used to test that PageSerializer correctly serializes the
philipj_slow 2015/06/12 07:52:01 I'd be interested to see what happens with <audio
Tiger (Sony Mobile) 2015/06/12 08:12:20 It's mentioned a bit about this in PageSerializer.
+ expected resources from various HTML nodes.
+-->
+<html>
+<head>
+<!-- Style sheet links should be retrieved -->
+<link rel="stylesheet" type="text/css" href="style.css"/>
+<!-- Other link should NOT be retrieved -->
+<link rel="copyright" type="text/plain" href="copyright.html"/>
+<!-- Scripts should NOT be retrieved -->
+<script src="script.js"></script>
+</head>
+
+<!-- Images are always retrieved -->
+<body background="bodyBackground.png">
+
+<!-- Twice to make sure we only report each resource once -->
+<img src="imageSrc.png"/>
+<img src="imageSrc.png"/>
+
+<!-- Non existing resource, should NOT be serialized -->
+<img src="nonExisting.png"/>
+
+<form>
+ <input type="image" src="inputImage.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, should NOT be serialized -->
+<blockquote cite="blockquoteCite.html"></blockquote>
+<q cite="qCite.html"></q>
+<p>My favorite color is <del cite="delCite.html">blue</del> <ins>red</ins>!</p>
+<p>My favorite color is <del>blue</del> <ins cite="insCite.html">red</ins>!</p>
+
+</body>
+
+</html>
« no previous file with comments | « Source/web/tests/PageSerializerTest.cpp ('k') | Source/web/tests/data/pageserializer/elements/empty.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698