From 7a8460ede088710dc7f41c6480708be10b4674a3 Mon Sep 17 00:00:00 2001 From: Jason Davies Date: Sat, 8 Oct 2011 12:58:41 +0000 Subject: [PATCH] Remove dangling __data__ from other tests. This occurs on Linux, where the directory listing order is different from OS X and so other tests leave data bound to the "body" element. This data is then propagated when new elements are appended, and thus mess up some of the tests! --- test/core/selection-selectAll-test.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/core/selection-selectAll-test.js b/test/core/selection-selectAll-test.js index b385b9f8..49058982 100644 --- a/test/core/selection-selectAll-test.js +++ b/test/core/selection-selectAll-test.js @@ -10,6 +10,7 @@ suite.addBatch({ "select(body)": { topic: function() { var body = d3.select("body").html(""); + if ("__data__" in body[0][0]) delete body[0][0].__data__; body.append("div").attr("class", "first"); body.append("div").attr("class", "second"); return body;