Commit afede9f1 authored by Mike Bostock's avatar Mike Bostock
Browse files

Remove test dependencies on DOM.

parent a8f2ac2a
......@@ -6,7 +6,7 @@ var suite = vows.describe("d3.interpolateArray");
suite.addBatch({
"interpolateArray": {
topic: load("interpolate/array").expression("d3.interpolateArray").document(),
topic: load("interpolate/array").expression("d3.interpolateArray"),
"interpolates defined elements": function(interpolate) {
assert.deepEqual(interpolate([2, 12], [4, 24])(.5), [3, 18]);
},
......
......@@ -6,7 +6,7 @@ var suite = vows.describe("d3.interpolate");
suite.addBatch({
"interpolate": {
topic: load("interpolate/interpolate").document(),
topic: load("interpolate/interpolate"),
"when b is a number": {
"interpolates numbers": function(d3) {
......
......@@ -6,7 +6,7 @@ var suite = vows.describe("d3.interpolateObject");
suite.addBatch({
"interpolateObject": {
topic: load("interpolate/object").expression("d3.interpolateObject").document(),
topic: load("interpolate/object").expression("d3.interpolateObject"),
"interpolates defined properties": function(interpolate) {
assert.deepEqual(interpolate({a: 2, b: 12}, {a: 4, b: 24})(.5), {a: 3, b: 18});
},
......
......@@ -6,7 +6,7 @@ var suite = vows.describe("d3.scale.identity");
suite.addBatch({
"identity": {
topic: load("scale/identity").expression("d3.scale.identity").document(),
topic: load("scale/identity").expression("d3.scale.identity"),
"domain and range": {
"are identical": function(identity) {
......
......@@ -6,7 +6,7 @@ var suite = vows.describe("d3.scale.linear");
suite.addBatch({
"linear": {
topic: load("scale/linear", "interpolate/hsl").document(), // beware instanceof d3_Color
topic: load("scale/linear", "interpolate/hsl"), // beware instanceof d3_Color
"domain": {
"defaults to [0, 1]": function(d3) {
......
......@@ -6,7 +6,7 @@ var suite = vows.describe("d3.scale.log");
suite.addBatch({
"log": {
topic: load("scale/log", "interpolate/hsl").document(), // beware instanceof d3_Color
topic: load("scale/log", "interpolate/hsl"), // beware instanceof d3_Color
"domain": {
"defaults to [1, 10], exactly": function(d3) {
......
......@@ -6,7 +6,7 @@ var suite = vows.describe("d3.scale.pow");
suite.addBatch({
"pow": {
topic: load("scale/pow", "interpolate/hsl").document(), // beware instance of d3_Colorr
topic: load("scale/pow", "interpolate/hsl"), // beware instance of d3_Colorr
"domain": {
"defaults to [0, 1]": function(d3) {
......
......@@ -6,7 +6,7 @@ var suite = vows.describe("d3.scale.sqrt");
suite.addBatch({
"sqrt": {
topic: load("scale/sqrt", "interpolate/hsl").document(), // beware instanceof d3_Color
topic: load("scale/sqrt", "interpolate/hsl"), // beware instanceof d3_Color
"domain": {
"defaults to [0, 1]": function(d3) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment