Bug 1385824 - Convert docshell/test/test_bug675587.html to comply with new data: URI inheritance model. r=smaug
authorChristoph Kerschbaumer <ckerschb@christophkerschbaumer.com>
Tue, 01 Aug 2017 10:59:42 +0200
changeset 618971 bd8bb33f871447a791987df7e12bf03f1611f53b
parent 618970 c5e543b0dfaaf508c6f57816ee8dc2fb70ab2301
child 618972 ce4b1ba61a79936fc6d9a4effe507547083578e0
push id71524
push userbmo:topwu.tw@gmail.com
push dateTue, 01 Aug 2017 10:03:48 +0000
reviewerssmaug
bugs1385824, 675587
milestone56.0a1
Bug 1385824 - Convert docshell/test/test_bug675587.html to comply with new data: URI inheritance model. r=smaug
docshell/test/file_bug675587.html
docshell/test/mochitest.ini
docshell/test/test_bug675587.html
new file mode 100644
--- /dev/null
+++ b/docshell/test/file_bug675587.html
@@ -0,0 +1,1 @@
+<script>location.hash='';</script>
--- a/docshell/test/mochitest.ini
+++ b/docshell/test/mochitest.ini
@@ -84,16 +84,17 @@ skip-if = toolkit == 'android'
 [test_bug653741.html]
 [test_bug660404.html]
 [test_bug662170.html]
 [test_bug668513.html]
 skip-if = toolkit == 'android'
 support-files = file_bug668513.html
 [test_bug669671.html]
 [test_bug675587.html]
+support-files = file_bug675587.html
 [test_bug680257.html]
 [test_bug691547.html]
 [test_bug694612.html]
 [test_bug703855.html]
 [test_bug713825.html]
 [test_bug728939.html]
 [test_bug797909.html]
 [test_bug1045096.html]
--- a/docshell/test/test_bug675587.html
+++ b/docshell/test/test_bug675587.html
@@ -6,29 +6,28 @@ https://bugzilla.mozilla.org/show_bug.cg
 <head>
   <title>Test for Bug 675587</title>
   <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
 </head>
 <body>
 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=675587">Mozilla Bug 675587</a>
 <p id="display">
-  <iframe src="data:text/html,<script>location.hash='';</script>#hash"></iframe>
+  <iframe src="file_bug675587.html#hash"></iframe>
 </p>
 <div id="content" style="display: none">
   
 </div>
 <pre id="test">
 <script type="application/javascript">
 
 /** Test for Bug 675587 **/
 SimpleTest.waitForExplicitFinish();
 addLoadEvent(function() {
-  is(window.frames[0].location.href,
-     "data:text/html,<script>location.hash='';</" + "script>#",
+  ok(window.frames[0].location.href.endsWith("file_bug675587.html#"),
      "Should have the right href");
   SimpleTest.finish();
 });
 
 </script>
 </pre>
 </body>
 </html>