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

MozReview-Commit-ID: ECNH5u4S4QR

--HG--
extra : rebase_source : a7c72ce5ecc9422a5661cb10bb4ec61c7a4dfc51
This commit is contained in:
Aryeh Gregor 2016-08-22 21:18:43 +03:00
Родитель 17e1475d15
Коммит d77c622ef5
3 изменённых файлов: 8 добавлений и 8 удалений

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

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

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

@ -168,6 +168,7 @@ skip-if = os != "win"
skip-if = os != "win"
[test_bug998188.html]
[test_bug1026397.html]
[test_bug1053048.html]
[test_bug1067255.html]
[test_bug1094000.html]
[test_CF_HTML_clipboard.html]

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

@ -6,22 +6,22 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1053048
<head>
<meta charset="utf-8">
<title>Test for Bug 1053048</title>
<script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
<script type="application/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">
<script type="application/javascript">
/** Test for Bug 1053048 **/
SimpleTest.waitForExplicitFinish();
SimpleTest.waitForFocus(runTests);
const nsISelectionPrivate = Components.interfaces.nsISelectionPrivate;
const nsISelectionListener = Components.interfaces.nsISelectionListener;
const nsIDOMNSEditableElement = Components.interfaces.nsIDOMNSEditableElement;
const nsISelectionPrivate = SpecialPowers.Ci.nsISelectionPrivate;
const nsISelectionListener = SpecialPowers.Ci.nsISelectionListener;
const nsIDOMNSEditableElement = SpecialPowers.Ci.nsIDOMNSEditableElement;
function runTests()
{
var textarea = document.getElementById("textarea");
var textarea = SpecialPowers.wrap(document.getElementById("textarea"));
textarea.focus();
var editor = textarea.QueryInterface(nsIDOMNSEditableElement).editor;