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

Unified Diff: Tools/GardeningServer/ui/ct-commit-list-tests.html

Issue 462453002: Sheriff-O-Matic: Transition more unit tests to mocha. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase and fix Created 6 years, 4 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 | « Tools/GardeningServer/ui/ct-builder-tests.html ('k') | Tools/GardeningServer/ui/ct-commit-tests.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Tools/GardeningServer/ui/ct-commit-list-tests.html
diff --git a/Tools/GardeningServer/ui/ct-commit-list-tests.html b/Tools/GardeningServer/ui/ct-commit-list-tests.html
deleted file mode 100644
index 19fef0d2296891b32500d70035a1d382ff6da228..0000000000000000000000000000000000000000
--- a/Tools/GardeningServer/ui/ct-commit-list-tests.html
+++ /dev/null
@@ -1,64 +0,0 @@
-<!--
-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-list.html">
-
-<link rel="import" href="../model/ct-commit-log-mock.html">
-
-<script>
-(function () {
-
-module("ct-commit-list");
-
-asyncTest("basic", 1, function() {
- var list = document.createElement('ct-commit-list');
-
- list.commits = new CTCommitLogMock();
-
- // FIXME: This test shouldn't rely on firstRevision being empty to pass.
- list.commits.firstRevision = {};
-
- var blinkCommits = list.commits.commits.blink;
- var revision;
- for (revision in blinkCommits)
- break;
-
- var numCommits = 2;
-
- list.first = {blink: revision};
- list.last = {blink: Number(revision) + numCommits};
-
- requestAnimationFrame(function() {
- var commits = list.shadowRoot.querySelectorAll('ct-commit');
- equal(commits.length, numCommits);
-
- start();
- });
-});
-
-asyncTest("backwards", 1, function() {
- var list = document.createElement('ct-commit-list');
-
- list.commits = new CTCommitLogMock();
-
- var blinkCommits = list.commits.commits.blink;
- var revision;
- for (revision in blinkCommits)
- break;
-
- list.first = {blink: revision};
- list.last = {blink: Number(revision) - 1};
-
- requestAnimationFrame(function() {
- var commits = list.shadowRoot.querySelectorAll('ct-commit');
- equal(commits.length, 0);
-
- start();
- });
-});
-
-})()
-</script>
« no previous file with comments | « Tools/GardeningServer/ui/ct-builder-tests.html ('k') | Tools/GardeningServer/ui/ct-commit-tests.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698