зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1269209 - Port test_bug46555.html from chrome to plain; r=masayuki
MozReview-Commit-ID: J7YdJAIzvR9 --HG-- extra : rebase_source : 6b9af9ca7b3bc7018bea6fb9a499c843f0b648be
This commit is contained in:
Родитель
84f4bfb68c
Коммит
918902dabb
|
@ -2,7 +2,6 @@
|
|||
skip-if = buildapp == 'b2g' || os == 'android'
|
||||
support-files = green.png
|
||||
|
||||
[test_bug46555.html]
|
||||
[test_bug366682.html]
|
||||
support-files = spellcheck.js
|
||||
[test_bug471319.html]
|
||||
|
|
|
@ -14,6 +14,7 @@ support-files =
|
|||
green.png
|
||||
spellcheck.js
|
||||
|
||||
[test_bug46555.html]
|
||||
[test_bug200416.html]
|
||||
[test_bug289384.html]
|
||||
skip-if = os != "mac"
|
||||
|
|
|
@ -9,9 +9,8 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=46555
|
|||
|
||||
<head>
|
||||
<title>Test for Bug 46555</title>
|
||||
<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"/>
|
||||
<script src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<link rel="stylesheet" href="/tests/SimpleTest/test.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
@ -32,7 +31,8 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=46555
|
|||
|
||||
var input = document.getElementById("t1");
|
||||
input.focus();
|
||||
var controller = input.controllers.getControllerForCommand(kCmd);
|
||||
var controller =
|
||||
SpecialPowers.wrap(input).controllers.getControllerForCommand(kCmd);
|
||||
|
||||
// Test 1: Select All should be disabled if editor is empty
|
||||
is(controller.isCommandEnabled(kCmd), false,
|
||||
|
|
Загрузка…
Ссылка в новой задаче