Bug 1236991 - bonus: move all the tests into the component dir instead of cluttering up browser/.../tests/general, r=enndeakin

MozReview-Commit-ID: O3HBNthHL2

--HG--
rename : browser/base/content/test/general/browser_bug329212.js => toolkit/components/tooltiptext/tests/browser_bug329212.js
rename : browser/base/content/test/general/browser_bug331772_xul_tooltiptext_in_html.js => toolkit/components/tooltiptext/tests/browser_bug331772_xul_tooltiptext_in_html.js
rename : browser/base/content/test/general/browser_bug561623.js => toolkit/components/tooltiptext/tests/browser_bug561623.js
rename : browser/base/content/test/general/browser_bug581947.js => toolkit/components/tooltiptext/tests/browser_bug581947.js
rename : toolkit/content/tests/browser/browser_input_file_tooltips.js => toolkit/components/tooltiptext/tests/browser_input_file_tooltips.js
rename : browser/base/content/test/general/title_test.svg => toolkit/components/tooltiptext/tests/title_test.svg
rename : browser/base/content/test/general/xul_tooltiptext.xhtml => toolkit/components/tooltiptext/tests/xul_tooltiptext.xhtml
extra : rebase_source : 8e4107a8eb06a7ac0197e0aa5e90d66536a91d74
extra : histedit_source : 3699613b4d4f8f6ae61a84bcdb777bcd43dee793
This commit is contained in:
Gijs Kruitbosch 2016-04-12 22:32:07 +01:00
Родитель 4ec690d160
Коммит 8814887a79
11 изменённых файлов: 69 добавлений и 9 удалений

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

@ -118,7 +118,6 @@ support-files =
test_mcb_double_redirect_image.html
test_mcb_redirect.js
test_mcb_redirect.sjs
xul_tooltiptext.xhtml
file_bug1045809_1.html
file_bug1045809_2.html
file_csp_block_all_mixedcontent.html
@ -176,8 +175,6 @@ skip-if = buildapp == 'mulet' || toolkit == "windows" # Disabled on Windows due
[browser_bug304198.js]
[browser_bug321000.js]
skip-if = true # browser_bug321000.js is disabled because newline handling is shaky (bug 592528)
[browser_bug329212.js]
[browser_bug331772_xul_tooltiptext_in_html.js]
[browser_bug356571.js]
[browser_bug380960.js]
[browser_bug386835.js]
@ -230,7 +227,6 @@ skip-if = buildapp == 'mulet' # Bug 1066070 - I don't think either popup notific
[browser_bug555767.js]
[browser_bug556061.js]
[browser_bug559991.js]
[browser_bug561623.js]
[browser_bug561636.js]
[browser_bug562649.js]
[browser_bug563588.js]
@ -247,7 +243,6 @@ skip-if = toolkit != "cocoa"
[browser_bug580956.js]
[browser_bug581242.js]
[browser_bug581253.js]
[browser_bug581947.js]
[browser_bug585558.js]
[browser_bug585785.js]
[browser_bug585830.js]

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

@ -4,7 +4,7 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
# BROWSER_CHROME_MANIFESTS += ['test/browser.ini']
BROWSER_CHROME_MANIFESTS += ['tests/browser.ini']
EXTRA_COMPONENTS += [
'TooltipTextProvider.js',

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

@ -0,0 +1,7 @@
[browser_bug329212.js]
support-files = title_test.svg
[browser_bug331772_xul_tooltiptext_in_html.js]
support-files = xul_tooltiptext.xhtml
[browser_bug561623.js]
[browser_bug581947.js]
[browser_input_file_tooltips.js]

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

@ -3,7 +3,7 @@
add_task(function*() {
yield BrowserTestUtils.withNewTab({
gBrowser,
url: "http://mochi.test:8888/browser/browser/base/content/test/general/title_test.svg",
url: "http://mochi.test:8888/browser/toolkit/components/tooltiptext/tests/title_test.svg",
}, function*(browser) {
yield ContentTask.spawn(browser, "", function() {
let tttp = Cc["@mozilla.org/embedcomp/default-tooltiptextprovider;1"]

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

@ -4,7 +4,7 @@
add_task(function*() {
yield BrowserTestUtils.withNewTab({
gBrowser,
url: "http://mochi.test:8888/browser/browser/base/content/test/general/xul_tooltiptext.xhtml",
url: "http://mochi.test:8888/browser/toolkit/components/tooltiptext/tests/xul_tooltiptext.xhtml",
}, function*(browser) {
yield ContentTask.spawn(browser, "", function() {
let textObj = {};

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

@ -0,0 +1,59 @@
<svg width="640px" height="480px" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>This is a root SVG element's title</title>
<foreignObject>
<html xmlns="http://www.w3.org/1999/xhtml">
<body>
<svg xmlns="http://www.w3.org/2000/svg" id="svg1">
<title>This is a non-root SVG element title</title>
</svg>
</body>
</html>
</foreignObject>
<text id="text1" x="10px" y="32px" font-size="24px">
This contains only &lt;title&gt;
<title>
This is a title
</title>
</text>
<text id="text2" x="10px" y="96px" font-size="24px">
This contains only &lt;desc&gt;
<desc>This is a desc</desc>
</text>
<text id="text3" x="10px" y="128px" font-size="24px" title="ignored for SVG">
This contains nothing.
</text>
<a id="link1" xlink:href="#">
This link contains &lt;title&gt;
<title>
This is a title
</title>
<text id="text4" x="10px" y="192px" font-size="24px">
</text>
</a>
<a id="link2" xlink:href="#">
<text x="10px" y="192px" font-size="24px">
This text contains &lt;title&gt;
<title>
This is a title
</title>
</text>
</a>
<a id="link3" xlink:href="#" xlink:title="This is an xlink:title attribute">
<text x="10px" y="224px" font-size="24px">
This link contains &lt;title&gt; &amp; xlink:title attr.
<title>This is a title</title>
</text>
</a>
<a id="link4" xlink:href="#" xlink:title="This is an xlink:title attribute">
<text x="10px" y="256px" font-size="24px">
This link contains xlink:title attr.
</text>
</a>
<text id="text5" x="10px" y="160px" font-size="24px"
xlink:title="This is an xlink:title attribute but it isn't on a link" >
This contains nothing.
</text>
</svg>

После

Ширина:  |  Высота:  |  Размер: 1.8 KiB

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

@ -14,7 +14,6 @@ support-files =
[browser_f7_caret_browsing.js]
skip-if = e10s
[browser_findbar.js]
[browser_input_file_tooltips.js]
[browser_isSynthetic.js]
support-files =
empty.png