зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1327902 - Test selecting over a user-select:none node next to an <input>.
This commit is contained in:
Родитель
8eb3b6cd3a
Коммит
2d0ba23745
|
@ -44,6 +44,9 @@ bbbb</div>
|
|||
<div class="non-selectable">x</div>
|
||||
<div class="non-selectable">x</div>
|
||||
bbbb</div>
|
||||
<div id="testH" style="white-space:pre">aaaa
|
||||
<div class="non-selectable">x</div><input>
|
||||
bbbbbbb</div>
|
||||
|
||||
<iframe id="testD" src="data:text/html,<body>aaaa<span style='-moz-user-select:none'>bbbb</span>cccc"></iframe>
|
||||
|
||||
|
@ -286,6 +289,16 @@ function test()
|
|||
checkRanges([[0,0,-1,1],[2,0,-1,3],[4,0,-1,5],[6,0,6,5]], e);
|
||||
doneTest(e);
|
||||
|
||||
clear();
|
||||
e = document.getElementById('testH');
|
||||
synthesizeMouse(e, 1, 1, {});
|
||||
synthesizeMouse(e, 30, 90, { shiftKey: true });
|
||||
synthesizeMouse(e, 50, 90, { shiftKey: true });
|
||||
synthesizeMouse(e, 70, 90, { shiftKey: true });
|
||||
checkText("aaaa bbb", e);
|
||||
checkRanges([[0,0,-1,1],[-1,2,3,4]], e);
|
||||
|
||||
doneTest(e);
|
||||
// ======================================================
|
||||
// ==================== Script tests ====================
|
||||
// ======================================================
|
||||
|
|
Загрузка…
Ссылка в новой задаче