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

Unified Diff: tracing/tracing/value/diagnostics/ownership_test.html

Issue 2977283002: Ownership into GenericSets (Closed)
Patch Set: Fix tests after reabse Created 3 years, 5 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: tracing/tracing/value/diagnostics/ownership_test.html
diff --git a/tracing/tracing/value/diagnostics/ownership_test.html b/tracing/tracing/value/diagnostics/ownership_test.html
deleted file mode 100644
index 9905e510e03f9a4887dcc5a6cd24ee7a71bf4576..0000000000000000000000000000000000000000
--- a/tracing/tracing/value/diagnostics/ownership_test.html
+++ /dev/null
@@ -1,45 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright 2017 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/value/diagnostics/ownership.html">
-
-<script>
-'use strict';
-
-tr.b.unittest.testSuite(function() {
- test('emailsAndComponentAddedToDict', function() {
- const sampleEmails = ['alice@chromium.org', 'bob@chromium.org'];
-
- const ownershipNoComp = new tr.v.d.Ownership(sampleEmails);
- const ownershipWithComp = new tr.v.d.Ownership(sampleEmails, 'fooBar');
-
- const noCompAsDict = {};
- const withCompAsDict = {};
-
- ownershipWithComp.asDictInto_(withCompAsDict);
- ownershipNoComp.asDictInto_(noCompAsDict);
-
- assert.deepEqual(noCompAsDict, {emails: sampleEmails});
- assert.deepEqual(withCompAsDict,
- {emails: sampleEmails, component: 'fooBar'});
- });
-
- test('fromDictCreatesWithEmailsAndComponent', function() {
- const sampleDict = {'emails': ['alice@chromium.org']};
-
- const ownerFromDictNoComp = tr.v.d.Ownership.fromDict(sampleDict);
- assert.isUndefined(ownerFromDictNoComp.component);
- assert.deepEqual(ownerFromDictNoComp.emails, ['alice@chromium.org']);
-
- sampleDict.component = 'fooBar';
- const ownerFromDictWithComp = tr.v.d.Ownership.fromDict(sampleDict);
- assert.strictEqual(ownerFromDictWithComp.component, 'fooBar');
- assert.deepEqual(ownerFromDictWithComp.emails, ['alice@chromium.org']);
- });
-});
-
-</script>
« no previous file with comments | « tracing/tracing/value/diagnostics/ownership.html ('k') | tracing/tracing/value/diagnostics/reserved_infos.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698