repo.or.cz
/
chromium-blink-merge.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge Chromium + Blink git repositories
[chromium-blink-merge.git]
/
third_party
/
WebKit
/
LayoutTests
/
fast
/
frames
/
srcdoc
/
srcdoc-beats-src-dom.html
blob
0948fad7b3c5506e453aa51bd0c3dd266c57806d
1
<body>
2
<script>
3
if
(
window
.
testRunner
)
4
testRunner
.
dumpAsText
();
5
6
var
ifrm
=
document
.
createElement
(
"iframe"
);
7
ifrm
.
srcdoc
=
"PASS"
;
8
ifrm
.
src
=
"data:text/html,<script>alert(/FAIL/);<\/script>"
;
9
document
.
body
.
appendChild
(
ifrm
);
10
</script>
11
This test passes if it doesn't alert FAIL.