Permalink
Browse files

FBTest fix, use span instead of div since divs can be appended by Fir…

…ebug
  • Loading branch information...
1 parent a152dfc commit 7c67ae600cd800a96c2e0572d07ab941e0688e3f @janodvarko janodvarko committed Oct 5, 2012
Showing with 7 additions and 7 deletions.
  1. +5 −5 tests/content/commandLine/5951/issue5951.html
  2. +2 −2 tests/content/commandLine/5951/issue5951.js
@@ -10,16 +10,16 @@
<h1><a href="http://code.google.com/p/fbug/issues/detail?id=5951">Issue 5951</a>:
Title of array-like objects should be clickable</h1>
</header>
-<div class="test">
+<div>
<section id="description">
<h3>Steps to reproduce</h3>
<ol>
<li>Select and enable the Console panel</li>
<li>Execute following expression in the command line: <br/>
- <code>document.getElementsByTagName("div")</code>
+ <code>document.getElementsByTagName("span")</code>
</li>
<li>The result should be: <br/>
- <code>HTMLCollection[div.test, div#root]</code>
+ <code>HTMLCollection[span.test, span#root]</code>
</li>
<li>Click the <code>HTMLCollection</code> title. You should be
navigated to the DOM panel.</li>
@@ -30,8 +30,8 @@
</footer>
</div>
-<div id="root">
-</div>
+<span class="test"></span>
+<span id="root"></span>
</body>
</html>
@@ -7,8 +7,8 @@ function runTest()
FBTest.clearCache();
FBTest.enableConsolePanel(function(win)
{
- var expression = "document.getElementsByTagName('div')";
- var expected = "HTMLCollection[div.test, div#root]";
+ var expression = "document.getElementsByTagName('span')";
+ var expected = "HTMLCollection[span.test, span#root]";
var config = {tagName: "pre", classes: "objectBox-array"};
FBTest.waitForDisplayedElement("console", config, function(row)

0 comments on commit 7c67ae6

Please sign in to comment.