Skip to content

Commit

Permalink
Fix some tests with old $ behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
sroussey committed Oct 2, 2012
1 parent 09320d3 commit 66f5c0c
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions tests/content/commandLine/4391/issue4391.html
Expand Up @@ -16,11 +16,11 @@ <h1>Issue #4391</h1>

<ol>
<li>Open Firebug and enable the Console panel.</li>
<li>Type following in to the command line: <code style="color:green">$("testElement")</code></li>
<li>Type following in to the command line: <code style="color:green">$("#testElement")</code></li>
<li>Press Enter</li>
<li>The result should be:
<pre>
>>> $("testElement")
>>> $("#testElement")
&ltdiv id="testElement"&gt
</pre>
<li>Load jQuery by clicking this button:
Expand Down
4 changes: 2 additions & 2 deletions tests/content/commandLine/api/api.html
Expand Up @@ -19,11 +19,11 @@ <h1>Command line API</h1>
<i>'expression' -> 'result'</i>
</li>
<ol>
<li><code>$("test1") -> &lt;div id="test1"&gt;</code></li>
<li><code>$("#test1") -> &lt;div id="test1"&gt;</code></li>
<li><code>$$(".a.c") -> [div.a, div.a]</code></li>
<li><code>$x("html/body/span/div[1]") -> [div.test]</code></li>
<li><code>dir(a) -> a: 10</code></li>
<li><code>dirxml($('test3')) -> &lt;div id="test3"&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;</code></li>
<li><code>dirxml($('#test3')) -> &lt;div id="test3"&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;</code></li>
<li><code>keys(b) -> ["a", "name"]</code></li>
<li><code>values(b) -> [7, "a"]</code></li>
<li><code>table(a) -> Object Properties: 10 (tabular output)</code></li>
Expand Down
4 changes: 2 additions & 2 deletions tests/content/commandLine/api/api.js
Expand Up @@ -15,7 +15,7 @@ function runTest()
// parameters.

// \u00A0 == &nbsp; == #160 -> used by nodeTag domplate.
tasks.push(executeAndVerify, "$(\"test1\")", "<div\u00A0id=\"test1\">",
tasks.push(executeAndVerify, "$(\"#test1\")", "<div\u00A0id=\"test1\">",
"a", "objectLink objectLink-element");

tasks.push(executeAndVerify, "$$(\".a.c\")", "[div.a, div.a]",
Expand All @@ -27,7 +27,7 @@ function runTest()
tasks.push(executeAndVerify, "dir(a)", /\s*a\s*10\s*/,
"table", "domTable");

tasks.push(executeAndVerify, "dirxml($('test3'))",
tasks.push(executeAndVerify, "dirxml($('#test3'))",
"<div\u00A0id=\"test3\"><div></div></div>",
"div", "logRow logRow-dirxml");

Expand Down
2 changes: 1 addition & 1 deletion tests/content/commandLine/api/cd.html
Expand Up @@ -20,7 +20,7 @@ <h1>Command line API: cd</h1>
</li>
<ol>
<li><code>cd(frames[0]) -> "Current window:", Window cdFrame.html]</code></li>
<li><code>$("test-iframe-1") -> &lt;div id="test-iframe-1"&gt;</code></li>
<li><code>$("#test-iframe-1") -> &lt;div id="test-iframe-1"&gt;</code></li>
<li><code>cd(top) -> ["Current window:", Window cd.html]</code></li>
</ol>
</ol>
Expand Down
2 changes: 1 addition & 1 deletion tests/content/commandLine/api/cd.js
Expand Up @@ -13,7 +13,7 @@ function runTest()
"[\"Current window:\", Window cdFrame.html]",
"pre", "objectBox objectBox-array");

tasks.push(FBTest.executeCommandAndVerify, "$(\"test-iframe-1\")",
tasks.push(FBTest.executeCommandAndVerify, "$(\"#test-iframe-1\")",
/<div\s*id=\"test-iframe-1\">/,
"a", "objectLink objectLink-element");

Expand Down
4 changes: 2 additions & 2 deletions tests/content/dom/attributes/attributes.js
Expand Up @@ -19,11 +19,11 @@ function runTest()
tasks.push(testDomPanel);

tasks.push(executeCommandAndVerify,
"$('testId').attributes", expectedValue,
"$('#testId').attributes", expectedValue,
"a", "objectLink objectLink-NamedNodeMap");

tasks.push(executeCommandAndVerify,
"$('testId').attributes[0]",
"$('#testId').attributes[0]",
expectedValue2,
"a", "objectLink objectLink-Attr");

Expand Down

0 comments on commit 66f5c0c

Please sign in to comment.