Skip to content

Commit

Permalink
new referer test
Browse files Browse the repository at this point in the history
  • Loading branch information
Hallvord Reiar M. Steen committed Jul 3, 2013
1 parent 4e96dac commit 6cac5f0
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions XMLHttpRequest/open-referer.htm
@@ -0,0 +1,20 @@
<!doctype html>
<html>
<head>
<title>XMLHttpRequest: open() - value of Referer header</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<link rel="help" href="http://dvcs.w3.org/hg/xhr/raw-file/tip/Overview.html#the-open()-method" data-tested-assertations="/following::ol[1]/li[2]/ol[1]/li[4]" />
</head>
<body>
<div id="log"></div>
<script>
test(function() {
var client = new XMLHttpRequest()
client.open("POST", "resources/inspect-headers.php?filter_name=referer", false)
client.send(null)
assert_equals(client.responseText, "referer: "+location.href)
})
</script>
</body>
</html>

0 comments on commit 6cac5f0

Please sign in to comment.