Skip to content

Commit f38ed05

Browse files
committed
Fix for JSDOM update.
1 parent 9b953bd commit f38ed05

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

test/selection/style-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ suite.addBatch({
9090
},
9191
"sets a property as a function": function(div) {
9292
div.style("background-color", _.interpolateRgb("orange", "yellow"));
93-
assert.equal(div[0][0].style.getPropertyValue("background-color"), "#ffa500");
94-
assert.equal(div[0][1].style.getPropertyValue("background-color"), "#ffff00");
93+
assert.equal(div[0][0].style.getPropertyValue("background-color"), "rgb(255, 165, 0)");
94+
assert.equal(div[0][1].style.getPropertyValue("background-color"), "rgb(255, 255, 0)");
9595
},
9696
"gets a property value": function(div) {
9797
div[0][0].style.setProperty("background-color", "green", "");

test/transition/transition-test-style.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ module.exports = {
2828
result.transition.each("end", function() { cb(null, result); });
2929
},
3030
"the last style operator takes precedence": function(result) {
31-
assert.equal(result.selection.style("background-color"), "#ff0000");
31+
assert.equal(result.selection.style("background-color"), "rgb(255, 0, 0)");
3232
},
3333
"sets a property as a string": function(result) {
34-
assert.equal(result.selection.style("background-color"), "#ff0000");
34+
assert.equal(result.selection.style("background-color"), "rgb(255, 0, 0)");
3535
},
3636
"sets a property as a function": function(result) {
37-
assert.equal(result.selection.style("color"), "#008000");
37+
assert.equal(result.selection.style("color"), "rgb(0, 128, 0)");
3838
},
3939
"observes the specified priority": function(result) {
4040
var style = result.selection.node().style;

test/transition/transition-test-styleTween.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ module.exports = {
4545
"invokes the tween function": function(result) {
4646
assert.deepEqual(result.data, ["red", "green"], "expected data, got {actual}");
4747
assert.deepEqual(result.index, [0, 1], "expected index, got {actual}");
48-
assert.deepEqual(result.value, ["#ff0000", "#008000"], "expected value, got {actual}");
48+
assert.deepEqual(result.value, ["rgb(255, 0, 0)", "rgb(0, 128, 0)"], "expected value, got {actual}");
4949
assert.domEqual(result.context[0], result.selection[0][0], "expected this, got {actual}");
5050
assert.domEqual(result.context[1], result.selection[0][1], "expected this, got {actual}");
5151
},
@@ -56,10 +56,10 @@ module.exports = {
5656
result.transition.each("end", function(d, i) { if (i >= 1) cb(null, result); });
5757
},
5858
"uses the returned interpolator": function(result) {
59-
assert.equal(result.selection[0][1].style.getPropertyValue("background-color"), "#0000ff");
59+
assert.equal(result.selection[0][1].style.getPropertyValue("background-color"), "rgb(0, 0, 255)");
6060
},
6161
"does nothing if the interpolator is falsey": function(result) {
62-
assert.equal(result.selection[0][0].style.getPropertyValue("background-color"), "#ff0000");
62+
assert.equal(result.selection[0][0].style.getPropertyValue("background-color"), "rgb(255, 0, 0)");
6363
}
6464
}
6565
};

0 commit comments

Comments
 (0)