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

MozReview-Commit-ID: BlAIUibApXY

--HG--
extra : rebase_source : ffd3721942ce7c17752215444d6f190417d5fb4b
This commit is contained in:
Aryeh Gregor 2016-08-22 21:20:05 +03:00
Родитель d77c622ef5
Коммит cf68de1927
3 изменённых файлов: 10 добавлений и 9 удалений

Просмотреть файл

@ -14,7 +14,6 @@ skip-if = buildapp == 'mulet'
[test_bug636465.xul]
[test_bug646194.xul]
[test_bug780908.xul]
[test_bug1100966.html]
[test_bug1102906.html]
[test_bug1101392.html]
subsuite = clipboard

Просмотреть файл

@ -171,6 +171,7 @@ skip-if = os != "win"
[test_bug1053048.html]
[test_bug1067255.html]
[test_bug1094000.html]
[test_bug1100966.html]
[test_CF_HTML_clipboard.html]
subsuite = clipboard
[test_contenteditable_focus.html]

Просмотреть файл

@ -5,9 +5,9 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1100966
-->
<head>
<title>Test for Bug 1100966</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 type="text/javascript" src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" href="/tests/SimpleTest/test.css">
<script src="/tests/SimpleTest/EventUtils.js"></script>
</head>
<body>
<div id="display">
@ -48,11 +48,12 @@ SimpleTest.waitForFocus(function() {
});
function getSpellCheckSelection() {
var Ci = Components.interfaces;
var editingSession = window.QueryInterface(Ci.nsIInterfaceRequestor)
.getInterface(Ci.nsIWebNavigation)
.QueryInterface(Ci.nsIInterfaceRequestor)
.getInterface(Ci.nsIEditingSession);
var Ci = SpecialPowers.Ci;
var editingSession = SpecialPowers.wrap(window)
.QueryInterface(Ci.nsIInterfaceRequestor)
.getInterface(Ci.nsIWebNavigation)
.QueryInterface(Ci.nsIInterfaceRequestor)
.getInterface(Ci.nsIEditingSession);
var editor = editingSession.getEditorForWindow(window);
var selcon = editor.selectionController;
return selcon.getSelection(selcon.SELECTION_SPELLCHECK);