| 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>
|
|
|