blob: 8602f1e824cb08710145feb8cca73737861e1812 [file] [log] [blame]
<!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/base.html">
<script src="/chai/chai.js"></script>
<script>
'use strict';
/**
* Alias chai assert to the global assert.
*/
if (tr.isNode) {
// In node, chai.js knows to act as a node module, whereas our HTML
// imports code expects chai to end up in the global scope. So, in Node,
// copy the chai exports into global.
var chaiAbsPath = HTMLImportsLoader.hrefToAbsolutePath(
'/chai/chai.js');
var chaiModule = require(chaiAbsPath);
for (var exportName in chaiModule)
global[exportName] = chaiModule[exportName];
} else {
/**
* Catapult presubmit wanted me to put a jsdoc here. So nduca did.
*/
global.assert = chai.assert;
}
</script>
<link rel="import" href="/tracing/base/unittest/suite_loader.html">
<link rel="import" href="/tracing/base/unittest/test_case.html">
<link rel="import" href="/tracing/base/unittest/test_suite.html">
<link rel="import" href="/tracing/base/unittest/test_runner.html">
<script>
'use strict';
tr.exportTo('tr.b.unittest', function() {
return {
};
});
</script>