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

Unified Diff: Tools/GardeningServer/scripts/ui/results_unittests.js

Issue 359283003: Remove usages of jquery and add sugar.js from garden-o-matic. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove jquery script from ct-sheriff-o-matic Created 6 years, 6 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/scripts/ui/results_unittests.js
diff --git a/Tools/GardeningServer/scripts/ui/results_unittests.js b/Tools/GardeningServer/scripts/ui/results_unittests.js
index be375871adf83dedde5a246fffc1eef016c5e9f6..497040e76b9565e94f3ffc7683d23027c3ac1cc3 100644
--- a/Tools/GardeningServer/scripts/ui/results_unittests.js
+++ b/Tools/GardeningServer/scripts/ui/results_unittests.js
@@ -188,8 +188,8 @@ test('View with reftests', 2, function() {
view.setResultsByTest(kExampleReftestResults);
view.firstResult();
- equals($('.non-action-button', view).length, 0);
- equals($('.action', view).length, 0);
+ equals(view.querySelectorAll('.non-action-button').length, 0);
+ equals(view.querySelectorAll('.action').length, 0);
});
asyncTest('View of timeouts', 1, function() {
@@ -202,7 +202,7 @@ asyncTest('View of timeouts', 1, function() {
view.setResultsByTest(kExampleResultsWithTimeoutByTest);
view.firstResult();
emptyPromise.then(function() {
- equals($('.results-grid', view).html(), 'No results to display.');
+ equals(view.querySelector('.results-grid').innerHTML, 'No results to display.');
start();
});
});

Powered by Google App Engine
This is Rietveld 408576698