Permalink
Browse files

Fix some tests with old $ behavior

  • Loading branch information...
1 parent 09320d3 commit 66f5c0c37f76cdb7b585ee26d7ac97a3091c0559 @sroussey sroussey committed Aug 4, 2012
@@ -16,11 +16,11 @@
<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:
@@ -19,11 +19,11 @@
<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>
@@ -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]",
@@ -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");
@@ -20,7 +20,7 @@
</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>
@@ -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");
@@ -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");

0 comments on commit 66f5c0c

Please sign in to comment.