Skip to content

Commit

Permalink
FBTest fix, use span instead of div since divs can be appended by Fir…
Browse files Browse the repository at this point in the history
…ebug
  • Loading branch information
janodvarko committed Oct 5, 2012
1 parent a152dfc commit 7c67ae6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions tests/content/commandLine/5951/issue5951.html
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@
<h1><a href="http://code.google.com/p/fbug/issues/detail?id=5951">Issue 5951</a>: <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> Title of array-like objects should be clickable</h1>
</header> </header>
<div class="test"> <div>
<section id="description"> <section id="description">
<h3>Steps to reproduce</h3> <h3>Steps to reproduce</h3>
<ol> <ol>
<li>Select and enable the Console panel</li> <li>Select and enable the Console panel</li>
<li>Execute following expression in the command line: <br/> <li>Execute following expression in the command line: <br/>
<code>document.getElementsByTagName("div")</code> <code>document.getElementsByTagName("span")</code>
</li> </li>
<li>The result should be: <br/> <li>The result should be: <br/>
<code>HTMLCollection[div.test, div#root]</code> <code>HTMLCollection[span.test, span#root]</code>
</li> </li>
<li>Click the <code>HTMLCollection</code> title. You should be <li>Click the <code>HTMLCollection</code> title. You should be
navigated to the DOM panel.</li> navigated to the DOM panel.</li>
Expand All @@ -30,8 +30,8 @@ <h3>Steps to reproduce</h3>
</footer> </footer>
</div> </div>


<div id="root"> <span class="test"></span>
</div> <span id="root"></span>


</body> </body>
</html> </html>
4 changes: 2 additions & 2 deletions tests/content/commandLine/5951/issue5951.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ function runTest()
FBTest.clearCache(); FBTest.clearCache();
FBTest.enableConsolePanel(function(win) FBTest.enableConsolePanel(function(win)
{ {
var expression = "document.getElementsByTagName('div')"; var expression = "document.getElementsByTagName('span')";
var expected = "HTMLCollection[div.test, div#root]"; var expected = "HTMLCollection[span.test, span#root]";


var config = {tagName: "pre", classes: "objectBox-array"}; var config = {tagName: "pre", classes: "objectBox-array"};
FBTest.waitForDisplayedElement("console", config, function(row) FBTest.waitForDisplayedElement("console", config, function(row)
Expand Down

0 comments on commit 7c67ae6

Please sign in to comment.