Skip to content
Permalink
Browse files

Excluded a couple Ajax tests from running locally.

  • Loading branch information
jeresig committed Jan 14, 2008
1 parent c39bd07 commit 2e6c123c875991792a8a701e108248e0b89524d4
Showing with 8 additions and 1 deletion.
  1. +8 −1 test/unit/core.js
@@ -217,6 +217,7 @@ test("$('html', context)", function() {
equals($span.length, 1, "Verify a span created with a div context works, #1763");
});

if ( !isLocal ) {
test("$(selector, xml).text(str) - Loaded via XML document", function() {
expect(2);
stop();
@@ -228,6 +229,7 @@ test("$(selector, xml).text(str) - Loaded via XML document", function() {
start();
});
});
}

test("length", function() {
expect(1);
@@ -950,15 +952,19 @@ test("find(String)", function() {
});

test("clone()", function() {
expect(6);
expect(4);
ok( 'This is a normal link: Yahoo' == $('#en').text(), 'Assert text for #en' );
var clone = $('#yahoo').clone();
ok( 'Try them out:Yahoo' == $('#first').append(clone).text(), 'Check for clone' );
ok( 'This is a normal link: Yahoo' == $('#en').text(), 'Reassert text for #en' );
// using contents will get comments regular, text, and comment nodes
var cl = $("#nonnodes").contents().clone();
ok( cl.length >= 2, "Check node,textnode,comment clone works (some browsers delete comments on clone)" );
});

if (!isLocal) {
test("clone() on XML nodes", function() {
expect(2);
stop();
$.get("data/dashboard.xml", function (xml) {
var root = $(xml.documentElement).clone();
@@ -969,6 +975,7 @@ test("clone()", function() {
start();
});
});
}

test("is(String)", function() {
expect(26);

0 comments on commit 2e6c123

Please sign in to comment.
You can’t perform that action at this time.