зеркало из https://github.com/mozilla/pjs.git
Bug 684418 - Remove a couple uses of enablePrivilege in mochitest. r=jmaher
--HG-- rename : browser/components/feeds/test/test_bug368464.html => browser/components/feeds/test/chrome/test_bug368464.html rename : browser/components/feeds/test/test_bug408328.html => browser/components/feeds/test/chrome/test_bug408328.html
This commit is contained in:
Родитель
bf8ea81362
Коммит
688eecefeb
|
@ -51,9 +51,7 @@ DIRS = \
|
|||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
_TEST_FILES = test_bug408328.html \
|
||||
bug408328-data.xml \
|
||||
test_bug368464.html \
|
||||
_TEST_FILES = bug408328-data.xml \
|
||||
bug368464-data.xml \
|
||||
test_bug494328.html \
|
||||
bug494328-data.xml \
|
||||
|
|
|
@ -51,6 +51,8 @@ _HTTP_FILES = \
|
|||
|
||||
_CHROME_FILES = \
|
||||
test_423060.xul \
|
||||
test_bug368464.html \
|
||||
test_bug408328.html \
|
||||
$(NULL)
|
||||
|
||||
libs:: $(_HTTP_FILES)
|
||||
|
|
|
@ -5,12 +5,12 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=368464
|
|||
-->
|
||||
<head>
|
||||
<title>Test that RSS 0.90 isn't sniffed</title>
|
||||
<script type="text/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=368464">Mozilla Bug 368464</a>
|
||||
<p id="display"><iframe id="testFrame" src="bug368464-data.xml"></iframe></p>
|
||||
<p id="display"><iframe id="testFrame" src="http://mochi.test:8888/tests/browser/components/feeds/test/bug368464-data.xml"></iframe></p>
|
||||
<div id="content" style="display: none">
|
||||
|
||||
</div>
|
||||
|
@ -21,7 +21,6 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=368464
|
|||
SimpleTest.waitForExplicitFinish();
|
||||
|
||||
addLoadEvent(function() {
|
||||
netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");
|
||||
ok($("testFrame").contentDocument.documentElement.id != "feedHandler",
|
||||
"RSS 0.90 shouldn't be sniffed as a feed");
|
||||
});
|
|
@ -5,12 +5,12 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=408328
|
|||
-->
|
||||
<head>
|
||||
<title>Test feed preview safe-linkification</title>
|
||||
<script type="text/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=408328">Mozilla Bug 408328</a>
|
||||
<p id="display"><iframe id="testFrame" src="bug408328-data.xml"></iframe></p>
|
||||
<p id="display"><iframe id="testFrame" src="http://mochi.test:8888/tests/browser/components/feeds/test/bug408328-data.xml"></iframe></p>
|
||||
<div id="content" style="display: none">
|
||||
|
||||
</div>
|
||||
|
@ -21,7 +21,6 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=408328
|
|||
SimpleTest.waitForExplicitFinish();
|
||||
|
||||
addLoadEvent(function() {
|
||||
netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");
|
||||
var links = $("testFrame").contentDocument.getElementById("feedContent").getElementsByTagName("a");
|
||||
is(links.length, 5, "wrong number of linked items in feed preview");
|
||||
for (var i = 0; i < links.length; i++) {
|
Загрузка…
Ссылка в новой задаче