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

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

Issue 68613003: Merges the two different page serializers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove newline after XML decl Created 7 years 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
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..0191a3ee11dd06d02171f993830cb15175534de2
--- /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
+ 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/data/pageserializer/dtd/html5.html ('k') | Source/web/tests/data/pageserializer/elements/image.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698