Bug 1269209 - Port test_bug635636.html from chrome to plain; r=masayuki

MozReview-Commit-ID: KoJbPZ85emj

--HG--
extra : rebase_source : df1f1d5dd8c02d6d00821ba0171d8e7697d3d789
This commit is contained in:
Aryeh Gregor 2016-08-22 21:16:52 +03:00
parent 4c585dd3d0
commit 57d3061a3c
3 changed files with 8 additions and 6 deletions

View File

@ -11,7 +11,6 @@ skip-if = buildapp == 'mulet'
skip-if = buildapp == 'mulet'
[test_bug607584.xul]
[test_bug616590.xul]
[test_bug635636.html]
[test_bug636465.xul]
[test_bug646194.xul]
[test_bug780908.xul]

View File

@ -115,6 +115,8 @@ skip-if = toolkit == 'android' #TIMED_OUT
skip-if = toolkit == 'android' #bug 957797
[test_bug625452.html]
[test_bug629845.html]
[test_bug635636.html]
skip-if = e10s
[test_bug638596.html]
[test_bug640321.html]
skip-if = android_version == '18' # bug 1147989

View File

@ -5,9 +5,9 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=635636
-->
<head>
<title>Test for Bug 635636</title>
<script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
<script type="text/javascript" src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script>
<link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css"/>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<script src="/tests/SimpleTest/EventUtils.js"></script>
<link rel="stylesheet" href="/tests/SimpleTest/test.css">
</head>
<body>
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=635636">Mozilla Bug 635636</a>
@ -33,8 +33,9 @@ addLoadEvent(function() {
w.document.designMode = 'on';
w.location = "data:text/plain,2";
d = w.document.getElementsByTagName("div")[0];
const Ci = Components.interfaces;
var mainWindow = w.QueryInterface(Ci.nsIInterfaceRequestor)
const Ci = SpecialPowers.Ci;
var mainWindow = SpecialPowers.wrap(w)
.QueryInterface(Ci.nsIInterfaceRequestor)
.getInterface(Ci.nsIWebNavigation)
.QueryInterface(Ci.nsIDocShellTreeItem)
.rootTreeItem