Bug 665548 - Test. r=jst
authorMounir Lamouri <mounir.lamouri@gmail.com>
Mon, 15 Oct 2012 15:48:26 +0100
changeset 110286 938c4afc92b938ced3bcf5ae332dddf047057360
parent 110285 b7f31a7368000ae093dca8ae21152af9a867fbe5
child 110287 790a3878f22a8c795a833bc68e5480b895f9e757
push id23680
push useremorley@mozilla.com
push dateTue, 16 Oct 2012 08:09:24 +0000
treeherdermozilla-central@8f145599e4bf [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjst
bugs665548
milestone19.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 665548 - Test. r=jst
dom/tests/mochitest/bugs/Makefile.in
dom/tests/mochitest/bugs/test_bug665548.html
--- a/dom/tests/mochitest/bugs/Makefile.in
+++ b/dom/tests/mochitest/bugs/Makefile.in
@@ -124,16 +124,17 @@ MOCHITEST_FILES	= \
 		test_bug739038.html \
 		test_bug740811.html \
 		test_bug743615.html \
 		utils_bug743615.js \
 		worker_bug743615.js \
 		test_bug750051.html \
 		test_bug755320.html \
 		test_bug777628.html \
+		test_bug665548.html \
 		$(NULL)
 
 ifneq (Linux,$(OS_ARCH))
 MOCHITEST_FILES += \
 		test_resize_move_windows.html \
 		$(NULL)
 else
 $(warning test_resize_move_windows.html is disabled on Linux for timeouts. Bug 677841)
new file mode 100644
--- /dev/null
+++ b/dom/tests/mochitest/bugs/test_bug665548.html
@@ -0,0 +1,29 @@
+<!DOCTYPE HTML>
+<html>
+<!--
+https://bugzilla.mozilla.org/show_bug.cgi?id=665548
+-->
+<head>
+  <title>Test for Bug 665548</title>
+  <script type="application/javascript" src="/MochiKit/packed.js"></script>
+  <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=665548">Mozilla Bug 665548</a>
+<p id="display"></p>
+<div id="content" style="display: none">
+  <iframe name='location'></iframe>
+</div>
+<pre id="test">
+<script type="application/javascript">
+
+/** Test for Bug 665548 **/
+
+isnot(window.location, window.frames[0],
+      "window.location shouldn't be the frame named location");
+
+</script>
+</pre>
+</body>
+</html>