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

Side by Side Diff: third_party/webgl/conformance-suites/1.0.0/conformance/invalid-UTF-16.html

Issue 9360034: Remove everthing except conformance tests in the deps/third_party/webgl (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/
Patch Set: Created 8 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!--
2 Copyright (c) 2010 The Chromium Authors. All rights reserved.
3 Use of this source code is governed by a BSD-style license that can be
4 found in the LICENSE file.
5 -->
6 <html>
7 <head>
8 <link rel="stylesheet" href="../resources/js-test-style.css">
9 <script src="../resources/js-test-pre.js"></script>
10 <script src="resources/webgl-test.js"></script>
11 </head>
12 <body>
13 <p id="description"></p>
14 <div id="console"></div>
15 <script>
16 if (window.initNonKhronosFramework) {
17 window.initNonKhronosFramework(false);
18 }
19 </script>
20 <script>
21 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 stri ng to UTF8 could be used for this test.');
22
23 var array = [];
24 array.push(String.fromCharCode(0x48)); // H
25 array.push(String.fromCharCode(0x69)); // i
26 array.push(String.fromCharCode(0xd87e)); // Bogus
27 var string = array.join('');
28
29 // In order to make this test not depend on WebGL, the following were
30 // attempted:
31 // - Send a string to console.log
32 // - Submit a mailto: form containing a text input with the bogus
33 // string
34 // The first code path does not perform a utf8 conversion of the
35 // incoming string unless Console::shouldPrintExceptions() returns
36 // true. The second seems to sanitize the form's input before
37 // converting it to a UTF8 string.
38
39 var gl = create3DContext(null);
40 var program = gl.createProgram();
41 gl.bindAttribLocation(program, 0, string);
42 testPassed("bindAttribLocation with invalid UTF-16 did not crash");
43
44 successfullyParsed = true;
45 </script>
46 <script src="../resources/js-test-post.js"></script>
47 </body>
48 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698