Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Side by Side Diff: content/public/android/javatests/src/org/chromium/content/browser/JavaBridgeArrayCoercionTest.java

Issue 2739603003: Add TestRules for content shell test and refactor test bases (Closed)
Patch Set: Address +boliu's comments Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.content.browser; 5 package org.chromium.content.browser;
6 6
7 import android.support.test.filters.SmallTest; 7 import android.support.test.filters.SmallTest;
8 8
9 import org.chromium.base.annotations.SuppressFBWarnings; 9 import org.chromium.base.annotations.SuppressFBWarnings;
10 import org.chromium.base.test.util.Feature; 10 import org.chromium.base.test.util.Feature;
11 import org.chromium.content.browser.JavaBridgeTestCommon.Controller;
11 12
12 /** 13 /**
13 * Part of the test suite for the Java Bridge. This class tests that we correctl y convert 14 * Part of the test suite for the Java Bridge. This class tests that we correctl y convert
14 * JavaScript arrays to Java arrays when passing them to the methods of injected Java objects. 15 * JavaScript arrays to Java arrays when passing them to the methods of injected Java objects.
15 * 16 *
16 * The conversions should follow 17 * The conversions should follow
17 * http://jdk6.java.net/plugin2/liveconnect/#JS_JAVA_CONVERSIONS. Places in 18 * http://jdk6.java.net/plugin2/liveconnect/#JS_JAVA_CONVERSIONS. Places in
18 * which the implementation differs from the spec are marked with 19 * which the implementation differs from the spec are marked with
19 * LIVECONNECT_COMPLIANCE. 20 * LIVECONNECT_COMPLIANCE.
20 * FIXME: Consider making our implementation more compliant, if it will not 21 * FIXME: Consider making our implementation more compliant, if it will not
(...skipping 937 matching lines...) Expand 10 before | Expand all | Expand 10 after
958 executeJavaScript("testObject.setObjectArray(float64_array);"); 959 executeJavaScript("testObject.setObjectArray(float64_array);");
959 assertNull(mTestObject.waitForObjectArray()); 960 assertNull(mTestObject.waitForObjectArray());
960 961
961 executeJavaScript("testObject.setStringArray(float64_array);"); 962 executeJavaScript("testObject.setStringArray(float64_array);");
962 assertNull(mTestObject.waitForStringArray()[0]); 963 assertNull(mTestObject.waitForStringArray()[0]);
963 964
964 executeJavaScript("testObject.setCustomTypeArray(float64_array);"); 965 executeJavaScript("testObject.setCustomTypeArray(float64_array);");
965 assertNull(mTestObject.waitForCustomTypeArray()); 966 assertNull(mTestObject.waitForCustomTypeArray());
966 } 967 }
967 } 968 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698