Skip to content

Commit

Permalink
Merge branch 'jsdom' of https://github.com/jasondavies/d3 into 2.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed Apr 15, 2012
2 parents 4ffe6b4 + e7025c7 commit c9b77a1
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -21,7 +21,7 @@
}, },
"main": "index.js", "main": "index.js",
"dependencies": { "dependencies": {
"jsdom": "0.2.12", "jsdom": "0.2.14",
"sizzle": "1.1.x" "sizzle": "1.1.x"
}, },
"devDependencies": { "devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/package.js
Expand Up @@ -10,7 +10,7 @@ require("util").puts(JSON.stringify({
"repository": {"type": "git", "url": "http://github.com/mbostock/d3.git"}, "repository": {"type": "git", "url": "http://github.com/mbostock/d3.git"},
"main": "index.js", "main": "index.js",
"dependencies": { "dependencies": {
"jsdom": "0.2.12", "jsdom": "0.2.14",
"sizzle": "1.1.x" "sizzle": "1.1.x"
}, },
"devDependencies": { "devDependencies": {
Expand Down
3 changes: 0 additions & 3 deletions test/core/selection-html-test.js
Expand Up @@ -98,16 +98,13 @@ suite.addBatch({
assert.equal(div[0][1].lastChild.tagName, "I"); assert.equal(div[0][1].lastChild.tagName, "I");
assert.equal(div[0][1].lastChild.textContent, "1"); assert.equal(div[0][1].lastChild.textContent, "1");
}, },
/*
https://github.com/tmpvar/jsdom/issues/276
"clears the inner HTML as null": function(div) { "clears the inner HTML as null": function(div) {
div.html(null); div.html(null);
assert.equal(div[0][0].innerHTML, ""); assert.equal(div[0][0].innerHTML, "");
assert.isNull(div[0][0].firstChild); assert.isNull(div[0][0].firstChild);
assert.equal(div[0][1].innerHTML, ""); assert.equal(div[0][1].innerHTML, "");
assert.isNull(div[0][1].firstChild); assert.isNull(div[0][1].firstChild);
}, },
*/
"clears the inner HTML as a function": function(div) { "clears the inner HTML as a function": function(div) {
div.html(function() { return ""; }); div.html(function() { return ""; });
assert.equal(div[0][0].innerHTML, ""); assert.equal(div[0][0].innerHTML, "");
Expand Down
2 changes: 0 additions & 2 deletions test/core/selection-text-test.js
Expand Up @@ -27,7 +27,6 @@ suite.addBatch({
assert.equal(document.body.textContent, "<h1>Hello, world!</h1>"); assert.equal(document.body.textContent, "<h1>Hello, world!</h1>");
assert.equal(document.body.firstChild.nodeType, document.TEXT_NODE); assert.equal(document.body.firstChild.nodeType, document.TEXT_NODE);
}, },
/* <https://github.com/tmpvar/jsdom/issues/276>
"clears the text content as null": function(body) { "clears the text content as null": function(body) {
body.text(null); body.text(null);
assert.equal(document.body.textContent, ""); assert.equal(document.body.textContent, "");
Expand All @@ -44,7 +43,6 @@ suite.addBatch({
body.text(function() { return undefined; }); body.text(function() { return undefined; });
assert.equal(document.body.textContent, ""); assert.equal(document.body.textContent, "");
}, },
*/
"ignores null nodes": function() { "ignores null nodes": function() {
var body = d3.select("body"); var body = d3.select("body");
body[0][0] = null; body[0][0] = null;
Expand Down

0 comments on commit c9b77a1

Please sign in to comment.