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!
This commit is contained in:
Родитель
bf73f5c506
Коммит
7a8460ede0
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче