T_QUERY returns instance that was bound.");
    assertMsg(query2 === gl.getQuery(gl.TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN, gl.CURRENT_QUERY), "CURRENT_QUERY returns instance that was bound.");

    // Garbage collect Javascript references. Remaining references should be internal to WebGL.
    query1 = null;
    query2 = null;
    webglHarnessCollectGarbage();

    var retrievedQuery1 = gl.getQuery(gl.ANY_SAMPLES_PASSED, gl.CURRENT_QUERY);
    var retrievedQuery2 = gl.getQuery(gl.TRANSFORM_FEEDBACK_PRIMITIVE