| Index: chrome/test/data/save_page/frames-runtime-changes.htm
|
| diff --git a/chrome/test/data/save_page/frames-runtime-changes.htm b/chrome/test/data/save_page/frames-runtime-changes.htm
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..2413993d929449b21c87a639661f84473fe7ab43
|
| --- /dev/null
|
| +++ b/chrome/test/data/save_page/frames-runtime-changes.htm
|
| @@ -0,0 +1,74 @@
|
| +<!doctype html>
|
| +<html>
|
| + <head>
|
| + <script type="text/javascript">
|
| +function addNewMarker(elementId, marker) {
|
| + f = document.getElementById(elementId)
|
| + f.contentDocument.body.innerHTML = elementId + ": " + marker
|
| +}
|
| +
|
| +function onLoad() {
|
| + if (location.href.indexOf("do_runtime_changes") == (-1))
|
| + return
|
| +
|
| + addNewMarker("subframe1", "21595339-61fc-4854-b6df-0668328ea263")
|
| + addNewMarker("subframe2", "adf55719-15e7-45be-9eda-d12fe782a1bd")
|
| + addNewMarker("subframe3", "50e294bf-3a5b-499d-8772-651ead26952f")
|
| + addNewMarker("subframe4", "e0ea9289-7467-4d32-ba5c-c604e8d84cb7")
|
| +}
|
| + </script>
|
| + </head>
|
| + <body onload="onLoad()">
|
| + <h1>Test page features</h1>
|
| +
|
| + IFrames below have the same URI, but JavaScript will change their
|
| + contents - the saved page should preserve this difference in
|
| + contents of the IFrames.
|
| +
|
| + <h1>Test content</h1>
|
| +
|
| + Content verification marker:
|
| + frames-runtime-changes.htm: 396f17f2-2c48-4793-a570-bc856e66e75d
|
| + <br>
|
| + <br>
|
| +
|
| + Frames with orignal content fetched via "src" attribute:
|
| + <br>
|
| + <iframe id="subframe1" src="b.htm"></iframe>
|
| + <br>
|
| + <br>
|
| + <iframe id="subframe2" src="b.htm"></iframe>
|
| + <br>
|
| + <br>
|
| +
|
| + Frames with orignal content defined via "srcdoc" attribute:
|
| + <br>
|
| + <iframe id="subframe3" srcdoc="
|
| + <html>
|
| + <head>
|
| + <title>subtitle3</title>
|
| + </head>
|
| + <body>
|
| + srcdoc3: bd191e37-1797-41a4-9e25-a732d988b255
|
| + <br>
|
| + <br>
|
| + </body>
|
| + </html>"></iframe>
|
| + <br>
|
| + <br>
|
| + <iframe id="subframe4" srcdoc="
|
| + <html>
|
| + <head>
|
| + <title>subtitle4</title>
|
| + </head>
|
| + <body>
|
| + srcdoc4: c60fa69e-20a8-4cb0-ad9d-122355fe2522
|
| + <br>
|
| + <br>
|
| + </body>
|
| + </html>"></iframe>
|
| + <br>
|
| + <br>
|
| +
|
| + </body>
|
| +</html>
|
|
|