| Index: Tools/GardeningServer/ui/ct-commit-tests.html
|
| diff --git a/Tools/GardeningServer/ui/ct-commit-tests.html b/Tools/GardeningServer/ui/ct-commit-tests.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..885f77a18cea3513da4ccf0f7b1224ab9c32be27
|
| --- /dev/null
|
| +++ b/Tools/GardeningServer/ui/ct-commit-tests.html
|
| @@ -0,0 +1,42 @@
|
| +<!--
|
| +Copyright 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="ct-commit.html">
|
| +
|
| +<script>
|
| +(function () {
|
| +
|
| +var kExampleCommitData = {
|
| + "revision": 2,
|
| + "title": "Fix one more layering violation caught by check-blink-deps",
|
| + "time": "2013-09-30T19:36:21Z",
|
| + "summary": "core/platform may not depend on core/ even for testing.",
|
| + "author": "eseidel@chromium.org",
|
| + "reviewer": "abarth@chromium.org, abarth",
|
| + "bugID": [12],
|
| + "revertedRevision": undefined
|
| +}
|
| +
|
| +module("ct-commit");
|
| +
|
| +asyncTest("basic", 3, function() {
|
| + var grouper = document.createElement('ct-commit');
|
| +
|
| + grouper.data = kExampleCommitData;
|
| +
|
| + Platform.endOfMicrotask(function() {
|
| + var html = grouper.shadowRoot.innerHTML;
|
| +
|
| + equal(html.indexOf('eseidel') != -1, true)
|
| + equal(html.indexOf('abarth') != -1, true)
|
| + equal(html.indexOf('may not depend on') != -1, true)
|
| +
|
| + start();
|
| + });
|
| +});
|
| +
|
| +})()
|
| +</script>
|
|
|