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

Unified Diff: third_party/WebKit/LayoutTests/fast/canvas/webgl/invalid-UTF-16.html

Issue 1601093008: Remove duplicated WebGL layout tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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/invalid-UTF-16.html
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/webgl/invalid-UTF-16.html b/third_party/WebKit/LayoutTests/fast/canvas/webgl/invalid-UTF-16.html
deleted file mode 100644
index ea7c69fbd632f37001c36b57359288fc9b614563..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/canvas/webgl/invalid-UTF-16.html
+++ /dev/null
@@ -1,37 +0,0 @@
-<html>
-<head>
-<script src="../../../resources/js-test.js"></script>
-<script src="resources/webgl-test.js"></script>
-</head>
-<body>
-<script>
- if (window.initNonKhronosFramework) {
- window.initNonKhronosFramework(false);
- }
-</script>
-<script>
-description('This test verifies that the internal conversion from UTF16 to UTF8 is robust to invalid inputs. Any DOM entry point which converts an incoming string to UTF8 could be used for this test.');
-
-var array = [];
-array.push(String.fromCharCode(0x48)); // H
-array.push(String.fromCharCode(0x69)); // i
-array.push(String.fromCharCode(0xd87e)); // Bogus
-var string = array.join('');
-
-// In order to make this test not depend on WebGL, the following were
-// attempted:
-// - Send a string to console.log
-// - Submit a mailto: form containing a text input with the bogus
-// string
-// The first code path does not perform a utf8 conversion of the
-// incoming string unless Console::shouldPrintExceptions() returns
-// true. The second seems to sanitize the form's input before
-// converting it to a UTF8 string.
-
-var gl = create3DContext(null);
-var program = gl.createProgram();
-gl.bindAttribLocation(program, 0, string);
-testPassed("bindAttribLocation with invalid UTF-16 did not crash");
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698