Index: third_party/WebKit/LayoutTests/fast/dom/Element/classlist-empty-string.html |
diff --git a/third_party/WebKit/LayoutTests/fast/dom/Element/classlist-empty-string.html b/third_party/WebKit/LayoutTests/fast/dom/Element/classlist-empty-string.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..5d6da588ede09b6a9d965912ce3d27f78f224f0d |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/fast/dom/Element/classlist-empty-string.html |
@@ -0,0 +1,13 @@ |
+<!DOCTYPE html> |
+<html> |
+<script src="../../../resources/js-test.js"></script> |
+<script> |
+debug("Check the classlist length attribute for empty strings"); |
+var div = document.createElement('div'); |
+div.className = ' '; |
+shouldBe("div.className.length", "3"); |
+ |
+div.className = ' '; |
+shouldBe("div.className.length", "5"); |
+</script> |
+</html> |