Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[test] Added test for the RegExp fix that demonstrates the issue.

  • Loading branch information...
commit 0d4b9012409744f1a61c2a1b7bd6108e5c051a3b 1 parent ebf3ad9
@3rd-Eden 3rd-Eden authored
View
11 test/api-test.js
@@ -493,6 +493,17 @@ vows.describe('merge data into markup').addBatch({
return common.createTest('test-40', map);
}()
+ ),
+
+ '(41) Should remove the correct element': (
+
+ function() {
+ var map = Plates.Map();
+
+ map.className('ssl').remove();
+
+ return common.createTest('test-41', map);
+ }()
)
}
View
20 test/fixtures/test-41.html
@@ -0,0 +1,20 @@
+<form class="ssl">
+ <fieldset>
+ <input type="text">
+ <textarea></textarea>
+ </fieldset>
+ <fieldset>
+ <input type="text">
+ <textarea></textarea>
+ </fieldset>
+ <fieldset>
+ <input type="text">
+ <textarea></textarea>
+ </fieldset>
+</form>
+<form>
+ <fieldset>
+ <input type="text">
+ <textarea></textarea>
+ </fieldset>
+</form>
View
1  test/fixtures/test-41.json
@@ -0,0 +1 @@
+{}
View
7 test/fixtures/test-41.out
@@ -0,0 +1,7 @@
+
+<form>
+ <fieldset>
+ <input type="text">
+ <textarea></textarea>
+ </fieldset>
+</form>
Please sign in to comment.
Something went wrong with that request. Please try again.