diff --git a/src/test/all.js b/src/test/all.js index a5c58f4bab..75d347b897 100644 --- a/src/test/all.js +++ b/src/test/all.js @@ -43,3 +43,12 @@ require("./mock-timers"); exports.enableTest = function(testID) { require("../" + testID); }; + +exports.removeNextSiblings = function(node) { + var parent = node && node.parentNode; + if (parent) { + while (node.nextSibling) { + parent.removeChild(node.nextSibling); + } + } +}; diff --git a/test/index.html b/test/index.html index 098874a4b6..97fbfb0479 100644 --- a/test/index.html +++ b/test/index.html @@ -8,7 +8,16 @@