Index: frontend/client/src/autotest/common/DomUtils.java |
diff --git a/frontend/client/src/autotest/common/DomUtils.java b/frontend/client/src/autotest/common/DomUtils.java |
new file mode 100644 |
index 0000000000000000000000000000000000000000..288a290fb520020138c670884cf3b45da5a5baf3 |
--- /dev/null |
+++ b/frontend/client/src/autotest/common/DomUtils.java |
@@ -0,0 +1,14 @@ |
+package autotest.common; |
+ |
+import com.google.gwt.dom.client.Element; |
+ |
+public class DomUtils { |
+ public static void clearDomChildren(Element elem) { |
+ Element child = elem.getFirstChildElement(); |
+ while (child != null) { |
+ Element nextChild = child.getNextSiblingElement(); |
+ elem.removeChild(child); |
+ child = nextChild; |
+ } |
+ } |
+} |