Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
d3-library
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
MUR Drupal
d3-library
Commits
e7025c7e
Commit
e7025c7e
authored
Apr 15, 2012
by
Jason Davies
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update jsdom to v0.2.14.
We can finally re-enable those tests!
parent
3adff5ab
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
7 deletions
+2
-7
package.json
package.json
+1
-1
src/package.js
src/package.js
+1
-1
test/core/selection-html-test.js
test/core/selection-html-test.js
+0
-3
test/core/selection-text-test.js
test/core/selection-text-test.js
+0
-2
No files found.
package.json
View file @
e7025c7e
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
},
},
"main"
:
"index.js"
,
"main"
:
"index.js"
,
"dependencies"
:
{
"dependencies"
:
{
"
jsdom
"
:
"
0.2.1
2
"
,
"
jsdom
"
:
"
0.2.1
4
"
,
"
sizzle
"
:
"
1.1.x
"
"
sizzle
"
:
"
1.1.x
"
},
},
"devDependencies"
:
{
"devDependencies"
:
{
...
...
src/package.js
View file @
e7025c7e
...
@@ -10,7 +10,7 @@ require("util").puts(JSON.stringify({
...
@@ -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.1
2
"
,
"
jsdom
"
:
"
0.2.1
4
"
,
"
sizzle
"
:
"
1.1.x
"
"
sizzle
"
:
"
1.1.x
"
},
},
"
devDependencies
"
:
{
"
devDependencies
"
:
{
...
...
test/core/selection-html-test.js
View file @
e7025c7e
...
@@ -98,8 +98,6 @@ suite.addBatch({
...
@@ -98,8 +98,6 @@ 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
,
""
);
...
@@ -107,7 +105,6 @@ suite.addBatch({
...
@@ -107,7 +105,6 @@ suite.addBatch({
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
,
""
);
...
...
test/core/selection-text-test.js
View file @
e7025c7e
...
@@ -27,7 +27,6 @@ suite.addBatch({
...
@@ -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
,
""
);
...
@@ -44,7 +43,6 @@ suite.addBatch({
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment