git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ac78ad0
)
Add test to show evalScripts/find problem.
author
Mike Alsup
<malsup@gmail.com>
Mon, 1 Jan 2007 17:21:46 +0000
(17:21 +0000)
committer
Mike Alsup
<malsup@gmail.com>
Mon, 1 Jan 2007 17:21:46 +0000
(17:21 +0000)
src/jquery/coreTest.js
patch
|
blob
|
history
diff --git
a/src/jquery/coreTest.js
b/src/jquery/coreTest.js
index
2692715
..
d7fa5c7
100644
(file)
--- a/
src/jquery/coreTest.js
+++ b/
src/jquery/coreTest.js
@@
-426,3
+426,17
@@
test("removeClass(String) - add three classes and remove again", function() {
test("removeAttr(String", function() {
\r
ok( $('#mark').removeAttr("class")[0].className == "", "remove class" );
\r
});
\r
test("removeAttr(String", function() {
\r
ok( $('#mark').removeAttr("class")[0].className == "", "remove class" );
\r
});
\r
+
\r
+test("evalScripts() with no script elements", function() {
\r
+ expect(2);
\r
+ stop();
\r
+ $.ajax({
\r
+ url: 'data/text.php?' + new Date().getTime(),
\r
+ success: function(data, status) {
\r
+ ok ( true, 'before evalScripts()');
\r
+ jQuery('#output').html(data).evalScripts();
\r
+ ok ( true, 'after evalScripts()');
\r
+ start();
\r
+ }
\r
+ });
\r
+});
\r