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

Side by Side Diff: tools/cc-frame-viewer/src/base/bbox2_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/bbox2.js ('k') | tools/cc-frame-viewer/src/base/color.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.bbox2');
13 </script>
14 </head>
15 <body>
16 <script>
17 'use strict';
18
19 var BBox2 = base.BBox2;
20
21 function testAddVec2() {
22 var bbox = new BBox2();
23 var x = vec2.create();
24 vec2.set(x, 10, 10);
25 bbox.addVec2(x);
26 assertTrue(bbox.minPoint.x == 10);
27 assertTrue(bbox.minPoint.y == 10);
28 assertTrue(bbox.maxPoint.x == 10);
29 assertTrue(bbox.maxPoint.y == 10);
30 // Mutate x.
31 vec2.set(x, 11, 11);
32
33 // Bbox shouldn't have changed.
34 assertTrue(bbox.minPoint.x == 10);
35 assertTrue(bbox.minPoint.y == 10);
36 assertTrue(bbox.maxPoint.x == 10);
37 assertTrue(bbox.maxPoint.y == 10);
38 }
39 </script>
40 </body>
41 </html>
OLDNEW
« no previous file with comments | « tools/cc-frame-viewer/src/base/bbox2.js ('k') | tools/cc-frame-viewer/src/base/color.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698