package gwt.react.api_sanity_test.client;

public class MapTests {
    public static void run() {
        //TODO
    }
}

@@ -40,77 +40,1245 @@
 t;%0A%0A
-public class MapTests %7B%0A    public static void run() %7B%0A        //TODO
+import gwt.react.client.utils.JSStringMap;%0Aimport gwt.react.shared.utils.Array;%0Aimport gwt.react.shared.utils.StringMap;%0A%0Apublic class MapTests %7B%0A    public static void run() %7B%0A%0A        StringMap%3CString%3E m1 = JSStringMap.create();%0A%0A        /* put, get, hasKey */%0A        m1.put(%22V1%22, %22Value1%22);%0A        assert(m1.get(%22V1%22).equals(%22Value1%22));%0A        assert(m1.get(%22V2%22) == null);%0A        assert(m1.hasKey(%22V1%22));%0A        assert(!m1.hasKey(%22V12%22));%0A%0A        m1 = JSStringMap.create();%0A        m1.put(%22V1%22, %22Value1%22);%0A        m1.put(%22V1%22, %22Value1.1%22);%0A        m1.put(%22V2%22, %22Value2%22);%0A%0A        /* keys */%0A        Array%3CString%3E mapKeys = m1.keys();%0A        assert(toString(mapKeys).equals(%22V1,V2%22));%0A%0A        /* values */%0A        Array%3CString%3E mapValues = m1.values();%0A        assert(toString(mapValues).equals(%22Value1.1,Value2%22));%0A%0A        /* remove */%0A        m1 = JSStringMap.create();%0A        m1.put(%22V1%22, %22Value1%22);%0A        m1.put(%22V2%22, %22Value2%22);%0A%0A        assert(m1.get(%22V1%22).equals(%22Value1%22));%0A        m1.remove(%22V1%22);%0A        assert(m1.get(%22V1%22) == null);%0A        //Should be no-op%0A        m1.remove(%22V1%22);%0A        assert(m1.get(%22V1%22) == null);%0A    %7D%0A%0A    private static String toString(Array%3CString%3E a) %7B%0A        return a.join(%22,%22);
 %0A   

Add tests for StringMap