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

Unified Diff: Tools/GardeningServer/model/ct-commit-log-tests.html

Issue 404463003: Move commit list and builder latest revisions up to ct-unexpected-failures (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: address review comments Created 6 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: Tools/GardeningServer/model/ct-commit-log-tests.html
diff --git a/Tools/GardeningServer/model/ct-commit-log-tests.html b/Tools/GardeningServer/model/ct-commit-log-tests.html
new file mode 100644
index 0000000000000000000000000000000000000000..030923a1a00cf7f4b7e5cf314aa7ff86cbd92aa5
--- /dev/null
+++ b/Tools/GardeningServer/model/ct-commit-log-tests.html
@@ -0,0 +1,44 @@
+<!--
+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-log.html">
+
+<link rel='import' href='ct-commit-mock.html'>
+
+<script>
+(function () {
+
+module("ct-commit-log");
+
+test("basic", 1, function() {
+ var commit = new CTCommitMock();
+ var kExampleCommitDataXML =
+ "<feed xmlns='http://www.w3.org/2005/Atom'>\n" +
+ "<title>blink, branch master</title>\n" +
+ "<subtitle>Mirror of the Chromium Blink repository.</subtitle>\n" +
+ "<link rel='alternate' type='text/html' href='http://blink.lc/blink/'/>\n" +
+ "<entry>\n" +
+ "<title>Throw SecurityError when setting 'Replaceable' properties cross-origin.</title>\n" +
+ "<updated>2013-09-30T20:22:01Z</updated>\n" +
+ "<author>\n" +
+ "<name>" + commit.author + "</name>\n" +
+ "</author>\n" +
+ "<published>2013-09-30T20:22:01Z</published>\n" +
+ "<link rel='alternate' type='text/html' href='http://blink.lc/blink/commit/?id=723e62a4a4e093435b4772b4839aa3fd7cf6b991'/>\n" +
+ "<id>723e62a4a4e093435b4772b4839aa3fd7cf6b991</id>\n" +
+ "<content type='text'>\n" + commit.message + "</content>\n";
+
+ var xml = new DOMParser().parseFromString(kExampleCommitDataXML, "text/xml");
+ var log = new CTCommitLog();
+ log._processXml(xml);
+
+ var expectedCommits = {};
+ expectedCommits[commit.revision] = commit;
+ deepEqual(log.commits, expectedCommits);
+});
+
+})();
+</script>
« no previous file with comments | « Tools/GardeningServer/model/ct-commit-log-mock.html ('k') | Tools/GardeningServer/model/ct-commit-mock.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698