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
/
loader
/
stateobjects
/
replacestate-updates-location.html
blob
aaa84090e34640b32d0ec798d8e84eeee042902c
1
<script>
2
if
(
window
.
testRunner
)
3
testRunner
.
dumpAsText
();
4
5
onload
=
function
() {
6
history
.
replaceState
(
null
,
null
,
"?foo"
);
7
8
if
(
location
.
search
==
"?foo"
) {
9
document
.
body
.
innerText
=
"PASS"
;
10
}
else
{
11
document
.
body
.
innerText
=
"FAIL: location.search is
\'
"
+
location
.
search
+
"
\'
"
;
12
}
13
}
14
</script>