PageRenderTime 15ms CodeModel.GetById 11ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/security/manager/ssl/tests/mochitest/mixedcontent/test_bug521461.html

http://github.com/zpao/v8monkey
HTML | 37 lines | 31 code | 6 blank | 0 comment | 0 complexity | 7d3f170b993a046714e3a9040af881e7 MD5 | raw file
 1<!DOCTYPE HTML>
 2<html>
 3<head>
 4  <title>Bug 521461</title>
 5  <script type="text/javascript" src="/MochiKit/Base.js"></script>
 6  <script type="text/javascript" src="/MochiKit/DOM.js"></script>
 7  <script type="text/javascript" src="/MochiKit/Style.js"></script>
 8  <script type="text/javascript" src="/MochiKit/Signal.js"></script>
 9  <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
10  <script type="text/javascript" src="mixedContentTest.js"></script>
11  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
12
13  <script class="testbody" type="text/javascript">
14    
15  loadAsInsecure = true;
16
17  function runTest()
18  {
19    window.location = "https://example.com/tests/security/ssl/mixedcontent/nocontent.sjs";
20    window.setTimeout(function() {
21      isSecurityState("insecure", "location.href doesn't effect the security state");
22      is(document.body.innerHTML, "This is an unsecure page!", "Document has not changed content");
23      finish();
24    }, 1000);
25  }
26
27  function afterNavigationTest()
28  {
29    isSecurityState("insecure", "still not secure after navigation");
30    is(document.body.innerHTML, "This is an unsecure page!", "Document has not changed content");
31    finish();
32  }
33
34  </script>
35</head>
36
37<body>This is an unsecure page!</body></html>