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

Side by Side Diff: tools/cc-frame-viewer/src/base/gl_matrix_test.html

Issue 15736032: Remove old cc-frame-viewer now that it is upstreamed into trace_viewer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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
« no previous file with comments | « tools/cc-frame-viewer/src/base/gl_matrix.js ('k') | tools/cc-frame-viewer/src/base/range.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 Copyright (c) 2012 The Chromium Authors. All rights reserved.
5 Use of this source code is governed by a BSD-style license that can be
6 found in the LICENSE file.
7 -->
8 <head>
9 <script src="../base.js"></script>
10 <script>
11 base.require('base.unittest');
12 base.require('base.gl_matrix');
13 </script>
14 </head>
15 <body>
16 <script>
17 'use strict';
18
19 function testPointInTri() {
20 var res = base.pointInTriangle2Pt(
21 {x: 0.25, y: 0.25},
22 {x: 0, y: 0},
23 {x: 1, y: 0},
24 {x: 0, y: 1});
25 assertTrue(res);
26 }
27
28 function testPointNotInTri() {
29 var res = base.pointInTriangle2Pt(
30 {x: 0.75, y: 0.75},
31 {x: 0, y: 0},
32 {x: 1, y: 0},
33 {x: 0, y: 1});
34 assertFalse(res);
35 }
36
37 function testPointInQuad() {
38 var res = base.pointInQuad2Pt(
39 {x: 0.5, y: 0.5},
40 {p1: {x: 0, y: 0},
41 p2: {x: 1, y: 0},
42 p3: {x: 1, y: 1},
43 p4: {x: 0, y: 1}});
44 assertTrue(res);
45 }
46
47 function testPointNotInQuad() {
48 var res = base.pointInQuad2Pt(
49 {x: 1.5, y: 0.5},
50 {p1: {x: 0, y: 0},
51 p2: {x: 1, y: 0},
52 p3: {x: 1, y: 1},
53 p4: {x: 0, y: 1}});
54 assertFalse(res);
55 }
56 </script>
57 </body>
58 </html>
OLDNEW
« no previous file with comments | « tools/cc-frame-viewer/src/base/gl_matrix.js ('k') | tools/cc-frame-viewer/src/base/range.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698