Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FBTest enable disabled test and port couple of fixes from 1.12
- Loading branch information
1 parent
e87b98a
commit a1913f6
Showing
3 changed files
with
58 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,46 @@ | ||
function runTest() | ||
{ | ||
FBTest.sysout("issue5742.START"); | ||
|
||
FBTest.openNewTab(basePath + "net/5742/issue5742.html", function(win) | ||
{ | ||
FBTest.openFirebug(); | ||
FBTest.enableNetPanel(function(win) | ||
{ | ||
FBTest.clearCache(); | ||
|
||
var config = { | ||
tagName: "tr", | ||
classes: "netRow category-xhr hasHeaders loaded" | ||
}; | ||
|
||
FBTest.waitForDisplayedElement("net", config, function(row) | ||
{ | ||
FBTest.click(row); | ||
var requestInfo = row.nextSibling; | ||
var XMLTab = requestInfo.getElementsByClassName("netInfoXMLTab")[0]; | ||
|
||
if (FBTest.ok(XMLTab, "There must be an XML tab.")) | ||
{ | ||
FBTest.click(XMLTab); | ||
var nodeTag = requestInfo.getElementsByClassName("netInfoXMLText")[0]. | ||
getElementsByClassName("nodeTag")[2]; | ||
|
||
if (FBTest.ok(nodeTag && nodeTag.textContent == "node", "There must be a <node> tag.")) | ||
{ | ||
FBTest.mouseOver(nodeTag); | ||
var tooltip = FW.FBL.$("fbTooltip"); | ||
FBTest.compare("/root/node", tooltip.label, "The tooltip of the <node> tag must be correct."); | ||
FBTest.testDone("issue5742.DONE"); | ||
} | ||
} | ||
}); | ||
|
||
FBTest.click(win.document.getElementById("makeXHR")); | ||
}); | ||
}); | ||
} | ||
function runTest() | ||
{ | ||
FBTest.sysout("issue5742.START"); | ||
|
||
FBTest.openNewTab(basePath + "net/5742/issue5742.html", function(win) | ||
{ | ||
FBTest.openFirebug(); | ||
FBTest.enableNetPanel(function(win) | ||
{ | ||
FBTest.clearCache(); | ||
|
||
var config = { | ||
tagName: "tr", | ||
classes: "netRow category-xhr hasHeaders loaded" | ||
}; | ||
|
||
FBTest.waitForDisplayedElement("net", config, function(row) | ||
{ | ||
FBTest.click(row); | ||
var requestInfo = row.nextSibling; | ||
var XMLTab = requestInfo.getElementsByClassName("netInfoXMLTab")[0]; | ||
|
||
if (FBTest.ok(XMLTab, "There must be an XML tab.")) | ||
{ | ||
FBTest.click(XMLTab); | ||
|
||
var root = requestInfo.getElementsByClassName("netInfoXMLText")[0]; | ||
var nodeTag = root.getElementsByClassName("nodeTag")[1]; | ||
|
||
if (FBTest.ok(nodeTag && nodeTag.textContent == | ||
"node", "There must be a <node> tag.")) | ||
{ | ||
FBTest.showTooltip(nodeTag, function(tooltip) | ||
{ | ||
FBTest.compare("/root/node", tooltip.label, | ||
"The tooltip of the <node> tag must be correct."); | ||
FBTest.testDone("issue5742.DONE"); | ||
}); | ||
} | ||
} | ||
}); | ||
|
||
FBTest.click(win.document.getElementById("makeXHR")); | ||
}); | ||
}); | ||
} |