aboutsummaryrefslogtreecommitdiffstats
path: root/gwtquery-core/src
diff options
context:
space:
mode:
authorManolo Carrasco <manolo@apache.org>2010-05-12 16:15:58 +0000
committerManolo Carrasco <manolo@apache.org>2010-05-12 16:15:58 +0000
commit5926c201d90670c77eff9988f57e619e7e8cda3c (patch)
tree4714ed12255b4668739c2400016f958969bf79c8 /gwtquery-core/src
parentbb080468879ff482c7af4286e5a91b9ca0f54af2 (diff)
downloadgwtquery-5926c201d90670c77eff9988f57e619e7e8cda3c.tar.gz
gwtquery-5926c201d90670c77eff9988f57e619e7e8cda3c.zip
added a test to demonstrate that capitalLetters in Id works as expected, Issue_17
Diffstat (limited to 'gwtquery-core/src')
-rw-r--r--gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryCoreTest.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryCoreTest.java b/gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryCoreTest.java
index 03a89b86..3e5d995b 100644
--- a/gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryCoreTest.java
+++ b/gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryCoreTest.java
@@ -534,4 +534,13 @@ public class GQueryCoreTest extends GWTTestCase {
assertEquals(2, $("span.target", e).size());
assertHtmlEquals(content, $(e).html());
}
+
+ public void testCapitalLetters() {
+ $(e).html("<div id='testImageDisplay' class='whatEver'>Content</div>");
+ assertEquals(1, $("#testImageDisplay").size());
+ // Commented because IE is case insensitive
+ // assertEquals(0, $("#testimagedisplay").size());
+ assertEquals(1, $(".whatEver").size());
+ assertEquals(0, $(".whatever").size());
+ }
}