mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 561623 - Test tooltip for HTMLInputElement. r=gavin
This commit is contained in:
parent
4ba7d860bf
commit
c99e7ead20
@ -136,6 +136,7 @@ _BROWSER_FILES = \
|
||||
browser_bug555224.js \
|
||||
browser_bug555767.js \
|
||||
browser_bug556061.js \
|
||||
browser_bug561623.js \
|
||||
browser_bug562649.js \
|
||||
browser_bug563588.js \
|
||||
browser_bug577121.js \
|
||||
|
29
browser/base/content/test/browser_bug561623.js
Normal file
29
browser/base/content/test/browser_bug561623.js
Normal file
@ -0,0 +1,29 @@
|
||||
function test() {
|
||||
waitForExplicitFinish();
|
||||
gBrowser.selectedTab = gBrowser.addTab();
|
||||
gBrowser.selectedBrowser.addEventListener("load", function () {
|
||||
gBrowser.selectedBrowser.removeEventListener("load", arguments.callee, true);
|
||||
|
||||
let doc = gBrowser.contentDocument;
|
||||
let tooltip = document.getElementById("aHTMLTooltip");
|
||||
let i = doc.getElementById("i");
|
||||
|
||||
ok(!FillInHTMLTooltip(i),
|
||||
"No tooltip should be shown when @title is null");
|
||||
|
||||
i.title = "foo";
|
||||
ok(FillInHTMLTooltip(i),
|
||||
"A tooltip should be shown when @title is not the empty string");
|
||||
|
||||
i.pattern = "bar";
|
||||
ok(FillInHTMLTooltip(i),
|
||||
"A tooltip should be shown when @title is not the empty string");
|
||||
|
||||
gBrowser.removeCurrentTab();
|
||||
finish();
|
||||
}, true);
|
||||
|
||||
content.location =
|
||||
"data:text/html,<!DOCTYPE html><html><body><input id='i'></body></html>";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user