bug 373181 - onload doesn't fire for XHTML documents that contain a script tag (Firefox's RSS preview is broken) - add mochikit test. r=sicking
authorted.mielczarek@gmail.com
Thu, 26 Apr 2007 04:39:15 -0700
changeset 832 27b7ac6d78f3c3db64cffb6f7532a65de3e60de4
parent 831 79cd5c82d3575690f80e407efbcd164a994996b9
child 833 857e9d5e0e5062002360233ff0edb1576e5fa3d6
push id1
push userbsmedberg@mozilla.com
push dateThu, 20 Mar 2008 16:49:24 +0000
treeherdermozilla-central@61007906a1f8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssicking
bugs373181
milestone1.9a4pre
bug 373181 - onload doesn't fire for XHTML documents that contain a script tag (Firefox's RSS preview is broken) - add mochikit test. r=sicking
content/base/test/Makefile.in
content/base/test/test_bug373181.xhtml
--- a/content/base/test/Makefile.in
+++ b/content/base/test/Makefile.in
@@ -76,12 +76,13 @@ include $(topsrcdir)/config/rules.mk
 		test_bug366946.html \
 		test_bug367164.html \
 		test_bug371576-1.html \
 		test_bug371576-2.html \
 		test_bug371576-3.html \
 		test_bug371576-4.html \
 		test_bug371576-5.html \
 		test_bug372086.html \
+		test_bug373181.xhtml \
 		$(NULL)
 
 libs:: $(_TEST_FILES)
 	$(INSTALL) $^ $(DEPTH)/_tests/testing/mochitest/tests/$(relativesrcdir)
new file mode 100644
--- /dev/null
+++ b/content/base/test/test_bug373181.xhtml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<html xmlns="http://www.w3.org/1999/xhtml">
+  <head>
+    <title>Testcase for bug 373181</title>
+    <script type="text/javascript" src="/MochiKit/packed.js"/>
+    <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"/>
+    <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
+    <script type="application/x-javascript">
+      var bodyOnLoad = false;
+      function checkOnLoad()
+      {
+        ok(bodyOnLoad, "Body onload event should fire");
+        SimpleTest.finish();
+      }
+      SimpleTest.waitForExplicitFinish();
+      setTimeout(checkOnLoad, 500);
+    </script>
+  </head>
+  <body onload="bodyOnLoad = true;"/>
+</html>