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

Unified Diff: third_party/WebKit/LayoutTests/fast/canvas/webgl/array-get-and-set-method-removal.html

Issue 2447493002: Removed some duplicate layout tests under fast/canvas/webgl (Closed)
Patch Set: Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/canvas/webgl/array-get-and-set-method-removal.html
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/webgl/array-get-and-set-method-removal.html b/third_party/WebKit/LayoutTests/fast/canvas/webgl/array-get-and-set-method-removal.html
deleted file mode 100644
index f5425d77586eccc4802f9dbb2a1ec5c486250ce4..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/canvas/webgl/array-get-and-set-method-removal.html
+++ /dev/null
@@ -1,51 +0,0 @@
-<html>
-<head>
-<script src="../../../resources/js-test.js"></script>
-<script src="resources/webgl-test.js"></script>
-</head>
-<body>
-<div id="description"></div>
-<div id="console"></div>
-
-<script>
-
-description("Verifies that the get method, and the set method for individual elements, on the WebGLArray types no longer exist.");
-
-debug('Regression test for <a href="https://bugs.webkit.org/show_bug.cgi?id=38039">https://bugs.webkit.org/show_bug.cgi?id=38039</a>');
-
-// Global scope so shouldThrow can see it
-var webGLArray;
-
-function negativeTestGetAndSetMethods(typeName) {
- var type = window[typeName];
- webGLArray = new type([2, 3]);
- shouldBeUndefined("webGLArray.get");
- var exceptionThrown = false;
- // We deliberately check for an exception here rather than using
- // shouldThrow here because the precise contents of the syntax
- // error are not specified.
- try {
- webGLArray.set(0, 1);
- } catch (e) {
- exceptionThrown = true;
- }
- var output = "webGLArray.set(0, 1) ";
- if (exceptionThrown) {
- testPassed(output + "threw exception.");
- } else {
- testFailed(output + "did not throw exception.");
- }
-}
-
-negativeTestGetAndSetMethods("Int8Array");
-negativeTestGetAndSetMethods("Uint8Array");
-negativeTestGetAndSetMethods("Int16Array");
-negativeTestGetAndSetMethods("Uint16Array");
-negativeTestGetAndSetMethods("Int32Array");
-negativeTestGetAndSetMethods("Uint32Array");
-negativeTestGetAndSetMethods("Float32Array");
-
-</script>
-
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698