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

Unified Diff: tracing/tracing/base/rect_test.html

Issue 2771723003: [tracing] Move math utilities from base into their own subdirectory (attempt 2) (Closed)
Patch Set: rebase Created 3 years, 9 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
« no previous file with comments | « tracing/tracing/base/rect.html ('k') | tracing/tracing/base/running_statistics.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/base/rect_test.html
diff --git a/tracing/tracing/base/rect_test.html b/tracing/tracing/base/rect_test.html
deleted file mode 100644
index 9f4765e2a3e478860f90c2891adc6746934d4914..0000000000000000000000000000000000000000
--- a/tracing/tracing/base/rect_test.html
+++ /dev/null
@@ -1,31 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 The Chromium Authors. All rights reserved.
-Use of this source code is governed by a BSD-style license that can be
-found in the LICENSE file.
--->
-<link rel="import" href="/tracing/base/rect.html">
-<script>
-'use strict';
-
-tr.b.unittest.testSuite(function() {
- test('UVRectBasic', function() {
- function assertRectEquals(a, b, opt_message) {
- var ok = true;
- if (a.x === b.x && a.y === b.y &&
- a.width === b.width && a.height === b.height) {
- return;
- }
- var message = opt_message || 'Expected "' + a.toString() +
- '", got "' + b.toString() + '"';
- assert.fail(a, b, message);
- }
- var container = tr.b.Rect.fromXYWH(0, 0, 10, 10);
- var inner = tr.b.Rect.fromXYWH(1, 1, 8, 8);
- var uv = inner.asUVRectInside(container);
- assertRectEquals(uv, tr.b.Rect.fromXYWH(0.1, 0.1, .8, .8));
- assert.equal(10, container.size().width);
- assert.equal(10, container.size().height);
- });
-});
-</script>
« no previous file with comments | « tracing/tracing/base/rect.html ('k') | tracing/tracing/base/running_statistics.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698