- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / test / data / nacl / cross_origin / same_origin_cookie.html
1 <html>
2 <!--
3 Copyright (c) 2013 The Chromium Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file.
6 -->
7 <head>
8 <title>NaCl Cross-origin Test</title>
9 </head>
10 <body>
11 <h2>NaCl Cross-origin Test</h2>
12 </body>
13 <script type="text/javascript" src="../load_util.js"></script>
14 <script>
15
16 function run() {
17   document.cookie = "foo";
18   var embed = load_util.embed("cors.nmf?expected_headers=Cookie:foo");
19   // This same-origin manifest request will succeed only if the server detects
20   // that a cookie is sent.  The .nexe is junk data, however, so the load
21   // ultimately fails.
22   load_util.expectLoadFailure(embed, "Bad ELF header magic number");
23   document.body.appendChild(embed);
24 }
25
26 run();
27
28 </script>
29 </html>