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

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

http://github.com/zpao/v8monkey
HTML | 33 lines | 28 code | 5 blank | 0 comment | 0 complexity | 0e85ba538850a3cc8841b505c271db5b MD5 | raw file
 1<!DOCTYPE HTML>
 2<html>
 3<head>
 4  <title>dymanic script load</title>
 5  <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
 6  <script type="text/javascript" src="mixedContentTest.js"></script>
 7  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
 8
 9  <script class="testbody" type="text/javascript">
10
11  function runTest()
12  {
13    isSecurityState("secure");
14    window.setTimeout(function() 
15    {
16      var newElement = document.createElement("script");
17      newElement.src= "http://example.org/tests/security/ssl/mixedcontent/bug329869.js";
18      document.body.appendChild(newElement);
19    }, 0);
20  }
21
22  function afterNavigationTest()
23  {
24    isSecurityState("broken", "security still broken after navigation");
25    finish();
26  }
27
28  </script>
29</head>
30
31<body>
32</body>
33</html>