Bug 809783 Fix test_maxSniffing.html (Error: Permission denied to access property 'documentElement' at http://mochi.test:8888/tests/suite/browser/test/test_maxSniffing.html:27) r=InvisibleSmiley r=IanN a=InvisibleSmiley
authorPhilip Chee <philip.chee@gmail.com>
Fri, 09 Nov 2012 11:37:46 +0800
changeset 13546 daa3c95e02135484ebd0235c65f736155baad9ee
parent 13545 de4387b45ac23e3554a5755a49444329b9d544c7
child 13547 1afba00dd59c3a49c4b6ce2e7dfcba8bbb351dee
push idunknown
push userunknown
push dateunknown
reviewersInvisibleSmiley, IanN, InvisibleSmiley
bugs809783
Bug 809783 Fix test_maxSniffing.html (Error: Permission denied to access property 'documentElement' at http://mochi.test:8888/tests/suite/browser/test/test_maxSniffing.html:27) r=InvisibleSmiley r=IanN a=InvisibleSmiley
suite/browser/test/Makefile.in
suite/browser/test/chrome/test_maxSniffing.html
suite/browser/test/mochitest/test_maxSniffing.html
--- a/suite/browser/test/Makefile.in
+++ b/suite/browser/test/Makefile.in
@@ -16,17 +16,16 @@ include $(topsrcdir)/config/rules.mk
 		test_bug395533.html \
 		bug395533-data.txt \
 		test_bug364677.html \
 		bug364677-data.xml \
 		bug364677-data.xml^headers^ \
 		test_registerHandler.html \
 		valid-feed.xml \
 		valid-unsniffable-feed.xml \
-		test_maxSniffing.html \
 		$(NULL)
 
 # test_contextmenu.html is disabled on Linux due to bug 513558
 ifneq (gtk2,$(MOZ_WIDGET_TOOLKIT))
 _TEST_FILES += \
 		test_contextmenu.html \
 		subtst_contextmenu.html \
 		ctxmenu-image.png \
@@ -66,13 +65,20 @@ endif
                  title_test.svg \
                  redirect_bug623155.sjs \
     $(NULL)
 
 ifneq (cocoa,$(MOZ_WIDGET_TOOLKIT))
 _BROWSER_FILES += browser_bug462289.js
 endif
 
+_CHROME_FILES = \
+                 test_maxSniffing.html \
+    $(NULL)
+
 libs:: $(addprefix mochitest/, $(_TEST_FILES))
 	$(INSTALL) $(foreach f,$^,"$f") $(MOZDEPTH)/_tests/testing/mochitest/tests/$(relativesrcdir)
 
 libs:: $(addprefix browser/, $(_BROWSER_FILES))
 	$(INSTALL) $(foreach f,$^,"$f") $(MOZDEPTH)/_tests/testing/mochitest/browser/$(relativesrcdir)
+
+libs:: $(addprefix chrome/, $(_CHROME_FILES))
+	$(INSTALL) $(foreach f,$^,"$f") $(MOZDEPTH)/_tests/testing/mochitest/chrome/$(relativesrcdir)
rename from suite/browser/test/mochitest/test_maxSniffing.html
rename to suite/browser/test/chrome/test_maxSniffing.html
--- a/suite/browser/test/mochitest/test_maxSniffing.html
+++ b/suite/browser/test/chrome/test_maxSniffing.html
@@ -1,17 +1,17 @@
 <!DOCTYPE HTML>
 <html>
 <!--
 https://bugzilla.mozilla.org/show_bug.cgi?id=739040
 -->
 <head>
   <title>Test that we only sniff 512 bytes</title>
-  <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
-  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
+  <script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
+  <link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css"/>
 </head>
 <body>
 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=739040">Mozilla Bug 739040</a>
 <p id="display">
   <iframe id="validTestFrame" src="http://mochi.test:8888/tests/suite/browser/test/valid-feed.xml"></iframe>
   <iframe id="unsniffableTestFrame" src="http://mochi.test:8888/tests/suite/browser/test/valid-unsniffable-feed.xml"></iframe>
 </p>
 <div id="content" style="display: none">