Search in sources :

Example 1 with JsArrayInteger

use of org.gwtproject.core.client.JsArrayInteger in project gwtproject by treblereel.

the class GwtInt16ArrayTest method testCreateJsArray.

@Test
public void testCreateJsArray() {
    if (!TypedArrays.isSupported()) {
        // TODO: some way of showing test as skipped in this case?
        return;
    }
    JsArrayInteger src = getJsoArray();
    Int16Array array = JsUtils.createInt16Array(src);
    validateArrayContents(array, 0);
}
Also used : Int16Array(org.gwtproject.typedarrays.shared.Int16Array) JsArrayInteger(org.gwtproject.core.client.JsArrayInteger) Int16ArrayTest(org.gwtproject.typedarrays.shared.Int16ArrayTest) Test(org.junit.Test)

Example 2 with JsArrayInteger

use of org.gwtproject.core.client.JsArrayInteger in project gwtproject by treblereel.

the class GwtInt32ArrayTest method testCreateJsArray.

@Test
public void testCreateJsArray() {
    if (!TypedArrays.isSupported()) {
        // TODO: some way of showing test as skipped in this case?
        return;
    }
    JsArrayInteger src = getJsoArray();
    Int32Array array = JsUtils.createInt32Array(src);
    validateArrayContents(array, 0);
}
Also used : Int32Array(org.gwtproject.typedarrays.shared.Int32Array) JsArrayInteger(org.gwtproject.core.client.JsArrayInteger) Test(org.junit.Test) Int32ArrayTest(org.gwtproject.typedarrays.shared.Int32ArrayTest)

Example 3 with JsArrayInteger

use of org.gwtproject.core.client.JsArrayInteger in project gwtproject by treblereel.

the class GwtUint8ArrayTest method testCreateJsArray.

@Test
public void testCreateJsArray() {
    if (!TypedArrays.isSupported()) {
        // TODO: some way of showing test as skipped in this case?
        return;
    }
    JsArrayInteger src = getJsoArray();
    Uint8Array array = JsUtils.createUint8Array(src);
    validateArrayContents(array, 0);
}
Also used : JsArrayInteger(org.gwtproject.core.client.JsArrayInteger) Uint8Array(org.gwtproject.typedarrays.shared.Uint8Array) Uint8ArrayTest(org.gwtproject.typedarrays.shared.Uint8ArrayTest) Test(org.junit.Test)

Example 4 with JsArrayInteger

use of org.gwtproject.core.client.JsArrayInteger in project gwtproject by treblereel.

the class GwtInt8ArrayTest method testCreateJsArray.

@Test
public void testCreateJsArray() {
    if (!TypedArrays.isSupported()) {
        // TODO: some way of showing test as skipped in this case?
        return;
    }
    JsArrayInteger src = getJsoArray();
    Int8Array array = JsUtils.createInt8Array(src);
    validateArrayContents(array, 0);
}
Also used : Int8Array(org.gwtproject.typedarrays.shared.Int8Array) JsArrayInteger(org.gwtproject.core.client.JsArrayInteger) Test(org.junit.Test) Int8ArrayTest(org.gwtproject.typedarrays.shared.Int8ArrayTest)

Example 5 with JsArrayInteger

use of org.gwtproject.core.client.JsArrayInteger in project gwtproject by treblereel.

the class GwtUint16ArrayTest method testCreateJsArray.

@Test
public void testCreateJsArray() {
    if (!TypedArrays.isSupported()) {
        // TODO: some way of showing test as skipped in this case?
        return;
    }
    JsArrayInteger src = getJsoArray();
    Uint16Array array = JsUtils.createUint16Array(src);
    validateArrayContents(array, 0);
}
Also used : Uint16Array(org.gwtproject.typedarrays.shared.Uint16Array) JsArrayInteger(org.gwtproject.core.client.JsArrayInteger) Uint16ArrayTest(org.gwtproject.typedarrays.shared.Uint16ArrayTest) Test(org.junit.Test)

Aggregations

JsArrayInteger (org.gwtproject.core.client.JsArrayInteger)8 Test (org.junit.Test)6 Range (org.gwtproject.view.client.Range)2 ArrayList (java.util.ArrayList)1 HashSet (java.util.HashSet)1 List (java.util.List)1 JavaScriptObject (org.gwtproject.core.client.JavaScriptObject)1 SafeHtmlBuilder (org.gwtproject.safehtml.shared.SafeHtmlBuilder)1 Int16Array (org.gwtproject.typedarrays.shared.Int16Array)1 Int16ArrayTest (org.gwtproject.typedarrays.shared.Int16ArrayTest)1 Int32Array (org.gwtproject.typedarrays.shared.Int32Array)1 Int32ArrayTest (org.gwtproject.typedarrays.shared.Int32ArrayTest)1 Int8Array (org.gwtproject.typedarrays.shared.Int8Array)1 Int8ArrayTest (org.gwtproject.typedarrays.shared.Int8ArrayTest)1 Uint16Array (org.gwtproject.typedarrays.shared.Uint16Array)1 Uint16ArrayTest (org.gwtproject.typedarrays.shared.Uint16ArrayTest)1 Uint8Array (org.gwtproject.typedarrays.shared.Uint8Array)1 Uint8ArrayTest (org.gwtproject.typedarrays.shared.Uint8ArrayTest)1 Uint8ClampedArray (org.gwtproject.typedarrays.shared.Uint8ClampedArray)1 Uint8ClampedArrayTest (org.gwtproject.typedarrays.shared.Uint8ClampedArrayTest)1