Updating test case to check for existence of indexOf() (<=IE8)
Review at http://gwt-code-reviews.appspot.com/1469803

Review by: jlabanca@google.com

git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@10445 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/test/com/google/gwt/core/client/JsIdentityTest.java b/user/test/com/google/gwt/core/client/JsIdentityTest.java
index 6a291d3..cab4df4 100644
--- a/user/test/com/google/gwt/core/client/JsIdentityTest.java
+++ b/user/test/com/google/gwt/core/client/JsIdentityTest.java
@@ -179,7 +179,16 @@
   }-*/;
 
   public native int indexOf(T value) /*-{
-    return this.indexOf(value);
+    if(this.indexOf) {
+      return this.indexOf(value);
+    } else {
+      for(var i=0; i<this.length; i++) {
+        if(this[i]==value) {
+          return i;
+        }
+      }
+      return -1;
+    }
   }-*/;
 
   public native int length() /*-{