Updated Tests Based on latest WD
WebCL Conformance test suite update.

Changes done :
    1.  Style changes following standards, like removal of tabs, nested try-catch blocks.
    2.  Framework update, adapting to latest framework from WebGL and adapting it to WebCL needs.
    3.  Creating of a WebCL helper class, WebCLTestUtils which will accommodate all the generic WebCL API calls.
    4.  Merger of all the test cases for a API into a single file. This will avoid code duplication maintaining  number of test cases.
    5.  Full API coverage: input/output validation and error handling as per latest WebCL Khronos specifications.

Contributors :
    SRI-B : Shilpa Shri, Sharath Kamath and Siba Samal.
    SRA : Antonio and Igor.

Details on changes is available at master branch:
https://github.com/SRA-SiliconValley/webkit-webcl-conformance.git.

Conflicts:
	README.md
WebCL Conformance test suite update for review.

      Changes done :

      1. Move all OpenCL kernels to a separate folder.
      2. As per comment type of exception thrown by all API is tested to be WebCLException only.
      3. Adding option to the home page to run test suite on multiple available platforms and devices.
      4. Functionality testing for creating kernels, creating program, building a program, enqueueReadBuffer,
      enqueueCopyBuffer, enqueueWriteBuffer, various operations on bufferRect, reading,
      writing and copying on bufferRect, various operations on WebCL Image, enqueueCopyBufferToImage,
      enqueueCopyImageToBuffer.

      Contributors :
      SRI-B : Shilpa Shri, Sharath Kamath and Siba Samal.
      SRA : Antonio and Igor.

      Details on changes is available at master_r2 branch:
      https://github.com/SRA-SiliconValley/webkit-webcl-conformance.git.
Removing older version code duplicated in working_draft.

As we are on git and no need to maintain code in different folders.

UNREVIEWED commit.
    WebCL Conformance test suite update for review.

    Changes done :
    1. Adding test case to test build log for large kernels.
    2. Add Strict mode flag for developers to run test suite in strict type check mode.
    3. Changes in Home page to activate "submit" on platform and device selection.
    4. Objects returned from **::getInfo() are to be tested with original objects.
    5. Delete redundant and duplicate test cases from the test suite.
    6. Making test cases in par with the WebCL specification working draft.
    7. Adding test cases for creating memory objects using HTML elements and canvas elements.

    Contributors :
    SRI-B : Shilpa Shri, Sharath Kamath.
    SRA : Antonio, Steven and Igor.

    Details on changes is available at master_r08022013 branch:
    https://github.com/SRA-SiliconValley/webkit-webcl-conformance.git.
WebCL Conformance test suite update for review.

    Fixing issues mainly to take care of the review comments from reviewers.

    Changes done :
    1. Removal of invalid_object and replacing it with invalid_CLenum/invalid objects as per test case requirment.
    2. Modify values of origin/region for invalid test cases and also sending different sized array as input.
    3. Removal of ArrayBuffer from all test files.
    4. Testing for exceptions like INVALID_CONTEXT, INVALID_EVENT_WAIT_LIST, MISALIGNED_SUB_BUFFER_OFFSET, IMAGE_FORMAT_MISMATCH.
    5. Move image file to resources folder.
    6. Routing all webcl calls via WTU for better error logs and catch API name which generates the exception.
    7. Home page: Adding expand and collpase activity, to avoid unnecessary scrolling.
    8. Adding test cases for certain missing API and new senarious identified during review.
    9. Cleanup of files with removal of redundant test cases and duplicate code.
    10. Partial copy test cases for copyImage and other API in funcationality folder.

    Contributors :
    SRI-B : Shilpa Shri, Sharath Kamath.
    SRA : Antonio, Steven and Igor.

    Details on changes is available at master_r10162013 branch:
    https://github.com/SRA-SiliconValley/webkit-webcl-conformance.git.
WebCL Conformance test suite update.

        Fixing issues mainly to take care of the review comments from reviewers.
            1. Display exception name along with Type when an exception thrown.
            2. API supports sequences in place of TypedArray.
            3. Simplify random number generation and verification in functionalityTesting.
            4. Adding testcase for API's enableExtension, getArgInfo, waitForEvents
            5. Functionality test case to validate the buffer created using ArrayBuffer/ImageElement/Canvas.
            6. Add kernels for testing sampler_t & image2d_t data type for SetArg().
            7. Logically break the test suite into more categories.
            8. Correct typedArray usage to match with kernel parameter.

        Contributors :
        SRI-B : Shilpa Shri, Sharath Kamath.
        SRA : Antonio, Steven and Igor.

        Details on changes is available at master_r11282013 branch:
        https://github.com/SRA-SiliconValley/webkit-webcl-conformance.git.
Fixed incorrect path ../../../../ to ../../../
    Correct files throwing TypeError in place of exception.

    Issue #245

    Answering to issue : https://github.com/KhronosGroup/WebCL-conformance/issues/20
WebCL Conformance test suite update.

    Fixing issues mainly to take care of the review comments from reviewers.
    1. [Khronos Issue#21] getPlatforms in resources/cl_utils.js is misnamed.
    2. Adding test cases for API's releaseAll. [SRA Issue#249]
    3. createContext() does not reflect the Specification. [SRA Issue#246]
    4. [Khronos Issue#14] Move test cases for HTML elements to extension/WEBCL_html_image.
    5. [Khronos Issue#2]    Correct value used to create buffer, across files

Contributors :
 SRI-B : Shilpa Shri, Sharath Kamath.
 SRA : Antonio, Steven and Igor.

 Details on changes is available at master_r12132013 branch:
 https://github.com/SRA-SiliconValley/webkit-webcl-conformance.git.
    Fixing issues mainly to take care of the review comments from reviewers.
    1. Correcting Type errors in conformance/bindingTesting/queues folder.
    2. Changing names for test cases verifying : INVALID_EVENT_WAIT_LIST.
    3. Replacing 'invalid_object' with WebCL object after its release. [SRA Issue#252]
    4. Adding testcases to verify exception for extension : WEBCL_html_video [SRA Issue#257]
    5. [Khronos Issue#8] Adding testcases to verify exception for extension : WEBCL_html_image [SRA Issue#255]
    6. Modifying signature of createImage for extension WEBCL_html_image [SRA Issue#256]

    Contributors :
    SRI-B : Shilpa Shri, Sharath Kamath.
    SRA : Antonio, Steven and Igor.

    Details on changes is available at master_r12232013 branch:
    https://github.com/SRA-SiliconValley/webkit-webcl-conformance.git.
    WebCL Conformance test suite update.

    Fixing issues mainly to take care of the review comments from reviewers.
    1. Adding Functionality testing for release and releaseAll API. [SRA Issue#237]
    2. [Khronos Issue#22] Correcting check for device in conformance/functionalityTesting/basics/createProgram.html
    3. [Khronos Issue#10 and Khronos Issue#23] Use 'shouldBeTypeOrException' for device dependent results.
    4. Renaming WEBCL_html_sharing to WEBCL_html_image across all extension files. [SRA Issue#259]
    5. Comparing kernel arguments against strings in cl_kernel_getArgInfo.html [SRA Issue#261]
    6. [Khronos Issue#24] Relaxing exception in bindingTesting/contextAndCreate/cl_context_createCommandQueue.html

    Contributors :
    SRI-B : Shilpa Shri, Sharath Kamath.
    SRA : Antonio, Steven and Igor.

    Details on changes is available at master_r12312013 branch:
    https://github.com/SRA-SiliconValley/webkit-webcl-conformance.git.
    WebCL Conformance test suite update.

    Fixing issues mainly to take care of the review comments from reviewers.
    1. [Khronos Issue#10] Correcting testcases for DEVICE_TYPE_ALL & DEVICE_TYPE_DEFAULT. [SRA Issue#251]
    2. readKernel 's status code. [SRA Issue#123]
    3. Add test cases to test region overlap in enqueueCopy* API. [SRA Issue#267]
    4. Adding a test case to test for HTMLImageElement interop. [SRA Issue#269]
    5. Add slicePitch to enqueueWriteBufferRect with extension : WEBCL_html_image [SRA Issue#264]
    6. Renaming DATA_SIZE to bufferSize & providing appropriate values using variables.
    7. Usage of webCLEvent and webCLUserEvent, across files. [SRA Issue#272]
    8. [Khronos Issue#19] Change user interface of Test suite [SRA Issue#270]
    9. Add missed test cases of getInfo, to reflect spec. [SRA Issue#275]
    10. change -W to -w in build files. [SRA Issue#276]
    11. Change the usage of descriptor in HTML extension createImage API.[SRA Issue#260]
    12. Do not mess up with global variable in cl_utils.js create methods. [SRA Issue #280]
    13. [Khronos Issue#30] Refactor bindingTesting/queues/cl_commandQueue_enqueueWaitForEvents.html [SRA Issue #279]

    Contributors :
    SRI-B : Shilpa Shri, Sharath Kamath.
    SRA : Antonio, Steven and Igor.

    Details on changes is available at master_r01062014 branch:
    https://github.com/SRA-SiliconValley/webkit-webcl-conformance.git.
    Fixing issues mainly to take care of the review comments from reviewers.

    [Khronos #26] bindingTesting/fetchInfo/cl_event_getProfilingInfo.html
    [Khronos #27] Refactor bindingTesting/eventsAndCallbacks/cl_webcl_waitForEvents.html
    [Khronos #9] Oddness in SetArg() functionality testing.
    Add test cases for API Kernel::getArgInfo, new WebCL::createContext
    [Khronos #19] Show device/platform if standalone load, Home: upper frame is scrollable, default platform and devices should have default values
    Adding testcases related to WebCLEvents.
    [Partial fix for Khronos #34]Relax some test cases when platform has a single device.

    Contributors :
    SRI-B : Shilpa Shri, Sharath Kamath.
    SRA : Antonio, Steven and Igor.

    Details on changes is available at master_r01202014 branch:
    https://github.com/SRA-SiliconValley/webkit-webcl-conformance.git.
    WebCL Conformance test suite update for review.

    Fixes the below issues ::
    [Khronos #34] Relax some test cases when platform has a single device. [SRA-GITHUB #290]
    [Khronos #35] Correct type of return value [SRA-GITHUB #294]
    [Khronos #37] HomePage : Correcting 'run tests' button behavior. [SRA-GITHUB #296]
    Modify test suite as per updated spec. [SRA-GITHUB #298]
    [Khronos #42] Define hostPtr in conformance/bindingTesting/eventsAndCallbacks/cl_webcl_waitForEvents.html [SRA-GITHUB #303]
    [Khronos #32] Add test case to create context on atleast one valid device. [SRA-GITHUB #297]

    Contributors :
    SRI-B : Shilpa Shri, Sharath Kamath.
    SRA : Antonio, Steven and Igor.

    Details on changes is available at master_r01292014 branch:
    https://github.com/SRA-SiliconValley/webkit-webcl-conformance.git.
    WebCL Conformance test suite update for review.

    Fixes the below issues ::
    [Khronos #29] Displaying operation mode (strict / relax) on home page.
    [Khronos #41] Refactor functionalityTesting/basics/createContext.html
    [Khronos #4] Add functionality test cases for enqueueCopyImage.
    [Khronos #39] rework the "display html summary" output
    [Khronos #40] Change size of hostPtr in createImage in multiple places.[Part1]
    [Khronos #38] make it easier to identify where a test has fail
    Modify test suite as per updated specification and miscellaneous corrections.

    Contributors :
    SRI-B : Shilpa Shri, Sharath Kamath.
    SRA : Antonio, Steven and Igor.
    WebCL Conformance test suite update for review.

    Fixes the below issues ::
    [Khronos #16] Security : Add test cases to check for memory initialization.
    Add test cases for rowPitch values with createImage()
    Create a commandQueue only if device supports the property.
    Fix enqueue{Read, Write} Image for 'hostRowPitchInvalid' in bindingTesting
    Add a test case for webclplatform::getdevices() without parameters.

    HomePage : Correction in obtaining DEFAULT device.
    HomePage : Display test case number only if its available

    Refractor enqueueCopy* API test cases.
    Add functionality tests for WebCLContext :: createCommandQueue
    Add functionality tests for createSampler API
    Add functionality tests for enqueue{Read, Write} Buffer API
    Add functionality tests for enqueue {Read/ Write} image API.

    createCommandQueue.html uses DEVICE_TYPE_ALL for creating context
    Refractor HTMLCanvasElement API's.
    Refractor all enqueue*Rect test cases.

    Add testcases for createContext in extension: KHR_gl_sharing.
    Add testcases for createFromGLRenderbuffer API in extension: KHR_gl_sharing.
    Add testcases for createFromGLTexture API in extension: KHR_gl_sharing.
    Add testcases for createFromGLBuffer API in extension: KHR_gl_sharing.

    Contributors :
    SRI-B : Shilpa Shri, Sharath Kamath.
    SRA : Antonio, Steven and Igor.
    WebCL Conformance test suite update for review.

    Fixes the below issues ::
    [Khronos #47] getInfo(DEVICE_QUEUE_PROPERTIES) test should expect 0, not null
    [Khronos #46] getInfo(DEVICE_VENDOR_ID) test should expect a number, not a string
    [Khronos #51] bindingTesting/eventsAndCallbacks/cl_event_setCallback.html review
    [Khronos #50] bindingTesting/eventsAndCallbacks/cl_webcl_waitForEvents.html review
    [Khronos #36] Need tests to ensure OpenCL C 1.2 features are not accepted.
    Add testcases to verify invalid callbacks, expecting typeError
    Add test cases for Valid values for parameters.
    Add testcase to verify IMAGE_FORMAT_MISMATCH

    Contributors :
    SRI-B : Shilpa Shri, Sharath Kamath, Gajendra N.
    SRA : Antonio, Steven and Igor.
    Fixing instanceOf behaviour with WebCLObjects in test suite.

    Issue #44

    Currently we store the WebCLPlatform & WebCLDevice objects selected
    by the user in the Global singleton object. This provides the user option
    to run test suite in particular platform & Device.

    This causes issue with instanceOf operator as the actual test case is
    executed in the iFrame and the global objects are created in the MainFrame.
    Since webcl is a property of window object the instanceOf with webcl across
    frames will return false.

    Fixing this by storing metadata on the selected devices & platform, instead of actual objects.
    These metadata (index of the selected devices & platform) are used to get the particular
    objects by querying WebCL in the execution frame.

    Assumption :: Everytime we call getPlatform() & getDevices(), the implementation
    must return same array of platforms & devices in order.
    WebCL Conformance test suite update for review.

    Fixes the below issues ::
    [Khronos #52] Remove invalid build option (-DSIZE=1024) from WebCLProgram :: build
    [Khronos #54] Needs test to ensure structures are not allowed as kernel argument
    [Khronos #47] getInfo(DEVICE_QUEUE_PROPERTIES) should return 0, 1, 2 or 3
    Add testcase to verify constants in WebCL.idl.
    Add testcase for WebCLContext :: getSupportedImageFormats with no params.
    Remove getPrototypeOf and use instanceof
    Modifying wtu.generateRandom#### API to make more sense.
    Passing releaseAll() call via WTU for HTMLCanvas files in WEBCL_html_image extension.

    Contributors :
    SRI-B : Shilpa Shri, Sharath Kamath, Gajendra N.
    SRA : Antonio, Steven and Igor.