PageRenderTime 23ms CodeModel.GetById 14ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

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

http://github.com/zpao/v8monkey
HTML | 35 lines | 29 code | 6 blank | 0 comment | 0 complexity | 79c1f43eed4c6b719921fc90dee02999 MD5 | raw file
 1<!DOCTYPE HTML>
 2<html>
 3<head>
 4  <title>img.src changes to unsecure test</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  (new Image()).src =
16    "http://example.com/tests/security/ssl/mixedcontent/moonsurface.jpg";
17
18  function runTest()
19  {
20    isSecurityState("broken", "(new Image()).src='http://...' changed to broken");
21    finish();
22  }
23
24  function afterNavigationTest()
25  {
26    isSecurityState("broken", "security broken after navigation");
27    finish();
28  }
29
30  </script>
31</head>
32
33<body>
34</body>
35</html>