forked from DevExpress/testcafe-hammerhead
-
Notifications
You must be signed in to change notification settings - Fork 1
/
expected.html
125 lines (113 loc) · 19.5 KB
/
expected.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html manifest="http://127.0.0.1:1836/sessionId*12345/http://base.url/some.url" manifest-hammerhead-stored-value="/some.url"><head><meta class="charset-hammerhead-shadow-ui" charset="utf-8">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=7">
<link id="stylesheet" rel="stylesheet" type="text/css" href="http://127.0.0.1:1836/sessionId*12345/http://stylesheet.url" crossorigin="anonymous" href-hammerhead-stored-value="http://stylesheet.url" integrity-hammerhead-stored-value="sha384-Li9vy3DqF8tnTXuiaAJuML3ky+er10rcgNR/VqsVpcw+ThHmYcwiB1pbOxEbzJr7">
<link href="http://127.0.0.1:1836/sessionId*12345/http://prefetch.url" href-hammerhead-stored-value="http://prefetch.url" rel-hammerhead-stored-value="prefetch">
<link rel="preload" href="http://127.0.0.1:1836/sessionId*12345!s!utf-8/http://link.url" as="script" href-hammerhead-stored-value="http://link.url">
<link rel="modulepreload" href="http://127.0.0.1:1836/sessionId*12345!s!utf-8/http://link.url" as="script" href-hammerhead-stored-value="http://link.url">
<link rel="stylesheet" type="text/css" class="ui-stylesheet-hammerhead-shadow-ui" href="http://127.0.0.1:1836/styles1.css"><link rel="stylesheet" type="text/css" class="ui-stylesheet-hammerhead-shadow-ui" href="http://127.0.0.1:1836/styles2.css"><script class="self-removing-script-hammerhead-shadow-ui">(function () {var currentScript = document.currentScript;if (!currentScript) {var scripts = document.scripts;var scriptsLength = scripts.length;currentScript = scripts[scriptsLength - 1];}currentScript.parentNode.removeChild(currentScript);window.localStorage.setItem("hammerhead|storage-wrapper|sessionId|127.0.0.1:2000", "[[\"key1\"],[\" ' \\\" \\\\ \\n \\t \\b \\f \"]]");window.sessionStorage.setItem("hammerhead|storage-wrapper|sessionId|127.0.0.1:2000", "[[\"key2\"],[\"value\"]]");})();</script><script type="text/javascript" class="script-hammerhead-shadow-ui" charset="UTF-8" src="http://127.0.0.1:1836/hammerhead.js"></script><script type="text/javascript" class="script-hammerhead-shadow-ui" charset="UTF-8" src="http://127.0.0.1:1836/script1.js"></script><script type="text/javascript" class="script-hammerhead-shadow-ui" charset="UTF-8" src="http://127.0.0.1:1836/script2.js"></script><script type="text/javascript" class="script-hammerhead-shadow-ui" charset="UTF-8" src="http://127.0.0.1:1836/task.js"></script><script type="text/javascript" src="http://127.0.0.1:1836/sessionId*12345!s!utf-8/http://link.url" crossorigin="anonymous" src-hammerhead-stored-value="http://link.url" integrity-hammerhead-stored-value="sha384-Li9vy3DqF8tnTXuiaAJuML3ky+er10rcgNR/VqsVpcw+ThHmYcwiB1pbOxEbzJr7"></script>
<script type="text/javascript" charset="utf-16be" src="http://127.0.0.1:1836/sessionId*12345!s!utf-16be/http://link.url" src-hammerhead-stored-value="http://link.url"></script>
<meta http-equiv="Refresh" content="0;URL=http://127.0.0.1:1836/sessionId*12345/http://link.url/">
<meta>
<meta id="metaWithoutContentAttr">
<meta name="referrer" content="unsafe-url">
<base href="http://127.0.0.1:1836/sessionId*12345/http://base.url" href-hammerhead-stored-value="http://base.url">
<title></title><script class="self-removing-script-hammerhead-shadow-ui">(function () {var currentScript = document.currentScript;if (!currentScript) {var scripts = document.scripts;var scriptsLength = scripts.length;currentScript = scripts[scriptsLength - 1];}currentScript.parentNode.removeChild(currentScript);window["%hammerhead%"].sandbox.node.onOriginFirstTitleElementInHeadLoaded();})();</script>
<style type="text/css">/*hammerhead|stylesheet|start*/
@import "http://127.0.0.1:1836/sessionId*12345/http://some.url";
@import url("http://127.0.0.1:1836/sessionId*12345/http://some.url");
@import 'http://127.0.0.1:1836/sessionId*12345/http://some.url';
@import url('http://127.0.0.1:1836/sessionId*12345/http://some.url');
.src[data-hammerhead-hovered] {
src : 'fakeUrl';
}
.src {
src : 'fakeUrl';
}
.someRule {
background-image: url('http://127.0.0.1:1836/sessionId*12345/http://some.url');
background: repeat-y url('http://127.0.0.1:1836/sessionId*12345/http://base.url/some/other/url') #fc0;
background-image: url("http://127.0.0.1:1836/sessionId*12345/http://some.url");
background: repeat-y url("http://127.0.0.1:1836/sessionId*12345/http://base.url/some/other/url") #fc0;
background-image: url(http://127.0.0.1:1836/sessionId*12345/http://some.url);
background: repeat-y url(http://127.0.0.1:1836/sessionId*12345/http://base.url/some/other/url) #fc0;
}
/*hammerhead|stylesheet|end*/</style>
<script type="text/javascript"> { a : __get$(window,"location") } </script>
<script type="text/javascript">
//<![CDATA[
/*hammerhead|script|start*/if (typeof window !== "undefined" && window){window["hammerhead|process-dom-method"] && window["hammerhead|process-dom-method"]();if (window.__get$ && typeof __get$ === "undefined")var __get$Loc = window.__get$Loc,__set$Loc = window.__set$Loc,__set$ = window.__set$,__get$ = window.__get$,__call$ = window.__call$,__get$Eval = window.__get$Eval,__proc$Script = window.__proc$Script,__proc$Html = window.__proc$Html,__get$PostMessage = window.__get$PostMessage,__get$ProxyUrl = window.__get$ProxyUrl,__rest$Array = window.__rest$Array,__rest$Object = window.__rest$Object,__arrayFrom$ = window.__arrayFrom$;} else {if (typeof __get$ === "undefined")var __get$Loc = function(l){return l},__set$Loc = function(l,v){return l = v},__set$ = function(o,p,v){return o[p] = v},__get$ = function(o,p){return o[p]},__call$ = function(o,p,a){return o[p].apply(o,a)},__get$Eval = function(e){return e},__proc$Script = function(s){return s},__proc$Html = function(h){return h},__get$PostMessage = function(w,p){return arguments.length===1?w.postMessage:p},__get$ProxyUrl = function(u,d){return u},__rest$Array = function(a,i){return Array.prototype.slice.call(a, i)},__rest$Object = function(o,p){var k=Object.keys(o),n={};for(var i=0;i<k.length;++i)if(p.indexOf(k[i])<0)n[k[i]]=o[k[i]];return n},__arrayFrom$ = function(r){if(!r)return r;return!Array.isArray(r)&&"function"==typeof r[Symbol.iterator]?Array.from(r):r};if (typeof importScripts !== "undefined" && /\[native code]/g.test(importScripts.toString()))importScripts((location.origin || (location.protocol + "//" + location.host)) + "/worker-hammerhead.js");}/*hammerhead|script|processing-header-end*/
__set$(window,"location",'test') ; 0,function(){var _hh$temp0='test';return __set$Loc(location,_hh$temp0)||(location=_hh$temp0);}.call(this) ; __set$(document,"location",'test') ; document.domain='test'; document.cookie='test';
/*hammerhead|script|end*///]]></script>
<script type="text/javascript">
<!--//--><![CDATA[//><!--
/*hammerhead|script|start*/if (typeof window !== "undefined" && window){window["hammerhead|process-dom-method"] && window["hammerhead|process-dom-method"]();if (window.__get$ && typeof __get$ === "undefined")var __get$Loc = window.__get$Loc,__set$Loc = window.__set$Loc,__set$ = window.__set$,__get$ = window.__get$,__call$ = window.__call$,__get$Eval = window.__get$Eval,__proc$Script = window.__proc$Script,__proc$Html = window.__proc$Html,__get$PostMessage = window.__get$PostMessage,__get$ProxyUrl = window.__get$ProxyUrl,__rest$Array = window.__rest$Array,__rest$Object = window.__rest$Object,__arrayFrom$ = window.__arrayFrom$;} else {if (typeof __get$ === "undefined")var __get$Loc = function(l){return l},__set$Loc = function(l,v){return l = v},__set$ = function(o,p,v){return o[p] = v},__get$ = function(o,p){return o[p]},__call$ = function(o,p,a){return o[p].apply(o,a)},__get$Eval = function(e){return e},__proc$Script = function(s){return s},__proc$Html = function(h){return h},__get$PostMessage = function(w,p){return arguments.length===1?w.postMessage:p},__get$ProxyUrl = function(u,d){return u},__rest$Array = function(a,i){return Array.prototype.slice.call(a, i)},__rest$Object = function(o,p){var k=Object.keys(o),n={};for(var i=0;i<k.length;++i)if(p.indexOf(k[i])<0)n[k[i]]=o[k[i]];return n},__arrayFrom$ = function(r){if(!r)return r;return!Array.isArray(r)&&"function"==typeof r[Symbol.iterator]?Array.from(r):r};if (typeof importScripts !== "undefined" && /\[native code]/g.test(importScripts.toString()))importScripts((location.origin || (location.protocol + "//" + location.host)) + "/worker-hammerhead.js");}/*hammerhead|script|processing-header-end*/
var someScript;
/*hammerhead|script|end*///--><!]]>
</script>
<!-- T217636: Health monitor - script incorrectly processes html-comments (flipkart.com) -->
<script type="text/javascript">
<!--<script type="text/javascript">-->
/*hammerhead|script|start*/if (typeof window !== "undefined" && window){window["hammerhead|process-dom-method"] && window["hammerhead|process-dom-method"]();if (window.__get$ && typeof __get$ === "undefined")var __get$Loc = window.__get$Loc,__set$Loc = window.__set$Loc,__set$ = window.__set$,__get$ = window.__get$,__call$ = window.__call$,__get$Eval = window.__get$Eval,__proc$Script = window.__proc$Script,__proc$Html = window.__proc$Html,__get$PostMessage = window.__get$PostMessage,__get$ProxyUrl = window.__get$ProxyUrl,__rest$Array = window.__rest$Array,__rest$Object = window.__rest$Object,__arrayFrom$ = window.__arrayFrom$;} else {if (typeof __get$ === "undefined")var __get$Loc = function(l){return l},__set$Loc = function(l,v){return l = v},__set$ = function(o,p,v){return o[p] = v},__get$ = function(o,p){return o[p]},__call$ = function(o,p,a){return o[p].apply(o,a)},__get$Eval = function(e){return e},__proc$Script = function(s){return s},__proc$Html = function(h){return h},__get$PostMessage = function(w,p){return arguments.length===1?w.postMessage:p},__get$ProxyUrl = function(u,d){return u},__rest$Array = function(a,i){return Array.prototype.slice.call(a, i)},__rest$Object = function(o,p){var k=Object.keys(o),n={};for(var i=0;i<k.length;++i)if(p.indexOf(k[i])<0)n[k[i]]=o[k[i]];return n},__arrayFrom$ = function(r){if(!r)return r;return!Array.isArray(r)&&"function"==typeof r[Symbol.iterator]?Array.from(r):r};if (typeof importScripts !== "undefined" && /\[native code]/g.test(importScripts.toString()))importScripts((location.origin || (location.protocol + "//" + location.host)) + "/worker-hammerhead.js");}/*hammerhead|script|processing-header-end*/
var someScript;
/*hammerhead|script|end*/</script>
<script type="module">/*hammerhead|script|start*/if (typeof window !== "undefined" && window){window["hammerhead|process-dom-method"] && window["hammerhead|process-dom-method"]();if (window.__get$ && typeof __get$ === "undefined")var __get$Loc = window.__get$Loc,__set$Loc = window.__set$Loc,__set$ = window.__set$,__get$ = window.__get$,__call$ = window.__call$,__get$Eval = window.__get$Eval,__proc$Script = window.__proc$Script,__proc$Html = window.__proc$Html,__get$PostMessage = window.__get$PostMessage,__get$ProxyUrl = window.__get$ProxyUrl,__rest$Array = window.__rest$Array,__rest$Object = window.__rest$Object,__arrayFrom$ = window.__arrayFrom$;} else {if (typeof __get$ === "undefined")var __get$Loc = function(l){return l},__set$Loc = function(l,v){return l = v},__set$ = function(o,p,v){return o[p] = v},__get$ = function(o,p){return o[p]},__call$ = function(o,p,a){return o[p].apply(o,a)},__get$Eval = function(e){return e},__proc$Script = function(s){return s},__proc$Html = function(h){return h},__get$PostMessage = function(w,p){return arguments.length===1?w.postMessage:p},__get$ProxyUrl = function(u,d){return u},__rest$Array = function(a,i){return Array.prototype.slice.call(a, i)},__rest$Object = function(o,p){var k=Object.keys(o),n={};for(var i=0;i<k.length;++i)if(p.indexOf(k[i])<0)n[k[i]]=o[k[i]];return n},__arrayFrom$ = function(r){if(!r)return r;return!Array.isArray(r)&&"function"==typeof r[Symbol.iterator]?Array.from(r):r};if (typeof importScripts !== "undefined" && /\[native code]/g.test(importScripts.toString()))importScripts((location.origin || (location.protocol + "//" + location.host)) + "/worker-hammerhead.js");}/*hammerhead|script|processing-header-end*/
import foo from "http://127.0.0.1:1836/sessionId*12345!s!utf-8/http://base.url/foo.js" ;
foo();
/*hammerhead|script|end*/</script>
<link rel="import" href="http://127.0.0.1:1836/sessionId*12345!h/http://link.url/some-imported-page.html" href-hammerhead-stored-value="http://link.url/some-imported-page.html">
</head>
<body><script class="self-removing-script-hammerhead-shadow-ui">(function () {var currentScript = document.currentScript;if (!currentScript) {var scripts = document.scripts;var scriptsLength = scripts.length;currentScript = scripts[scriptsLength - 1];}currentScript.parentNode.removeChild(currentScript);if (window["%hammerhead%"])window["%hammerhead%"].sandbox.node.raiseBodyCreatedEvent();})();</script>
<map>
<area href="http://127.0.0.1:1836/sessionId*12345/http://link.url" href-hammerhead-stored-value="http://link.url">
</map>
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEcAAAARCAYAAAH4YIF">
<a id="link" href="http://127.0.0.1:1836/sessionId*12345/http://link.url" href-hammerhead-stored-value="http://link.url"></a>
<a id="httpsLink" href="http://127.0.0.1:1836/sessionId*12345/https://link.url" href-hammerhead-stored-value="https://link.url"></a>
<a id="javascriptLink" href="javascript: parent.__proc$Html(window,void 0); " href-hammerhead-stored-value="javascript: void(0);"></a>
<a id="mailtoLink" href="mailto: some@e.mail"></a>
<a id="hashLink" href="#42"></a>
<a id="aboutBlankLink" href="http://127.0.0.1:1836/sessionId*12345/about:blank" href-hammerhead-stored-value="about:blank"></a>
<a id="aboutErrorLink" href="http://127.0.0.1:1836/sessionId*12345/about:error" href-hammerhead-stored-value="about:error"></a>
<img src="about:blank" src-hammerhead-stored-value="about:blank">
<iframe src="about:blank" src-hammerhead-stored-value="about:blank"></iframe>
<div id="href-test" class="HP-innerHTML" data-test="{location: 9034, filter: 'dlk4k', action: 349}"></div>
<a href="javascript: parent.__proc$Html(window,onclick("1")); " href-hammerhead-stored-value="javascript:onclick("1");"></a>
<a href="javascript: parent.__proc$Html(window,a.src="test") " href-hammerhead-stored-value="javascript:a.src="test""></a>
<div style="background: url(http://127.0.0.1:1836/sessionId*12345/http://base.url/image.png)" onclick=" __set$(window,"location",'test') ; return false;" onclick-hammerhead-stored-value="window.location='test'; return false;"></div>
<div onclick="javascript: __set$(window,"location",'test') ; return false;" onclick-hammerhead-stored-value="javascript:window.location='test'; return false;"></div>
<form id="form" method="post" action="http://127.0.0.1:1836/sessionId*12345!f/http://post.something.here" action-hammerhead-stored-value="http://post.something.here">
<input type="file" autocomplete-hammerhead-stored-value="hammerhead|autocomplete-attribute-absence-marker" autocomplete="off" required-hammerhead-stored-value="">
<input formaction="http://127.0.0.1:1836/sessionId*12345!f/http://input.formaction.com/" formaction-hammerhead-stored-value="http://input.formaction.com/" autocomplete-hammerhead-stored-value="hammerhead|autocomplete-attribute-absence-marker" autocomplete="off">
<button formaction="http://127.0.0.1:1836/sessionId*12345!f/http://button.formaction.com/" formaction-hammerhead-stored-value="http://button.formaction.com/"></button>
</form>
<embed id="swf" src="http://127.0.0.1:1836/sessionId*12345/http://some.nice.kitty.image" src-hammerhead-stored-value="http://some.nice.kitty.image">
<input autocomplete-hammerhead-stored-value="hammerhead|autocomplete-attribute-absence-marker" autocomplete="off">
<input type="text" autocomplete="off" autocomplete-hammerhead-stored-value="on">
<input type="password" autocomplete="off" autocomplete-hammerhead-stored-value="off">
<input type="email" autocomplete="off" autocomplete-hammerhead-stored-value="">
<iframe src="javascript: parent.__proc$Html(window,'<html><body><a id="link" href="http://link.url"></a></body></html>') " src-hammerhead-stored-value="javascript:'<html><body><a id="link" href="http://link.url"></a></body></html>'"></iframe>
<iframe src="javascript: parent.__proc$Html(window,"<html><body><a id='link' href='http://link.url'> </a></body></html>") " src-hammerhead-stored-value="javascript:"<html><body><a id='link' href='http://link.url'> </a></body></html>""></iframe>
<iframe src="javascript: parent.__proc$Html(window,'<div></div>') " src-hammerhead-stored-value="javascript:'<div></div>'"></iframe>
<svg xml:base="http://127.0.0.1:1836/sessionId*12345/http://domain.com/" xml:base-hammerhead-stored-value="http://domain.com/">
<rect xml:base="http://127.0.0.1:1836/sessionId*12345/http://sub.domain.com/" xml:base-hammerhead-stored-value="http://sub.domain.com/">
<use xlink:href="#svg-rect" xlink:href-hammerhead-stored-value="#svg-rect"></use>
</rect>
<use xlink:href="http://127.0.0.1:1836/sessionId*12345/http://domain.com/test.svg#rect" xlink:href-hammerhead-stored-value="http://domain.com/test.svg#rect"></use>
</svg>
<div xlink:href="http://domain.com/test.svg#rect"></div>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<image xlink:href="http://127.0.0.1:1836/sessionId*12345/http://domain.com/test.svg" xlink:href-hammerhead-stored-value="http://domain.com/test.svg">
</image>
<image href="http://127.0.0.1:1836/sessionId*12345/http://domain.com/test.svg" href-hammerhead-stored-value="http://domain.com/test.svg">
</image>
</svg>
<a id="wrong-url-1" href="//:0" href-hammerhead-stored-value="//:0"></a>
<a id="wrong-url-2" href="//:0/" href-hammerhead-stored-value="//:0/"></a>
<a id="wrong-url-3" href="http://test:0" href-hammerhead-stored-value="http://test:0"></a>
<a id="wrong-url-4" href="http://test:123456789" href-hammerhead-stored-value="http://test:123456789"></a>
<input formaction="http://127.0.0.1:1836/sessionId*12345!f/http://input.formaction.com/" formaction-hammerhead-stored-value="http://input.formaction.com/" autocomplete-hammerhead-stored-value="hammerhead|autocomplete-attribute-absence-marker" autocomplete="off">
<button formaction="http://127.0.0.1:1836/sessionId*12345!f/http://button.formaction.com/" formaction-hammerhead-stored-value="http://button.formaction.com/"></button>
<iframe srcdoc="<html><head><meta class="charset-hammerhead-shadow-ui" charset="utf-8"><script class="self-removing-script-hammerhead-shadow-ui">(function () {var currentScript = document.currentScript;if (!currentScript) {var scripts = document.scripts;var scriptsLength = scripts.length;currentScript = scripts[scriptsLength - 1];}currentScript.parentNode.removeChild(currentScript);var parentHammerhead = null;if (!window["%hammerhead%"])Object.defineProperty(window, "hammerhead|document-was-cleaned", { value: true, configurable: true });try {parentHammerhead = window.parent["%hammerhead%"];} catch(e) {}if (parentHammerhead)parentHammerhead.sandbox.onIframeDocumentRecreated(window.frameElement);})();</script></head><body><a href="http://127.0.0.1:1836/sessionId*12345!i/http://link.url" href-hammerhead-stored-value="http://link.url">link</a></body></html>" srcdoc-hammerhead-stored-value="<a href='http://link.url'>link</a>"></iframe>
<iframe src="http://127.0.0.1:1837/sessionId*12345!i!127.0.0.1%3A2000/http://cross.domain.com" src-hammerhead-stored-value="http://cross.domain.com"></iframe>
</body></html>