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

Unified Diff: tracing/tracing/ui/base/table_test.html

Issue 2776653002: [ESLint] Fix violations when enabling curly rule in eslint. (Closed)
Patch Set: Fix test Created 3 years, 9 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: tracing/tracing/ui/base/table_test.html
diff --git a/tracing/tracing/ui/base/table_test.html b/tracing/tracing/ui/base/table_test.html
index b68990059cc35965b075c4deeaa54b214a0e4c99..7635200fa90dd021e62616b1de8bbbe2793c0307 100644
--- a/tracing/tracing/ui/base/table_test.html
+++ b/tracing/tracing/ui/base/table_test.html
@@ -18,8 +18,7 @@ tr.b.unittest.testSuite(function() {
var ColumnAlignment = tr.ui.b.TableFormat.ColumnAlignment;
function isSelected(element) {
- if (!element.hasAttribute('selected'))
- return false;
+ if (!element.hasAttribute('selected')) return false;
return element.getAttribute('selected') === 'true';
}
@@ -1203,8 +1202,9 @@ tr.b.unittest.testSuite(function() {
test('focus_allCellsUnselectable', function() {
var table = createMultiColumnNestedTable();
table.selectionMode = SelectionMode.CELL;
- for (var c of table.tableColumns)
+ for (var c of table.tableColumns) {
c.supportsCellSelection = false;
+ }
table.tableColumns = table.tableColumns;
this.addHTMLOutput(table);
@@ -1777,11 +1777,9 @@ tr.b.unittest.testSuite(function() {
table.defaultExpansionStateCallback = function(row, parentRow) {
callbackCalled = true;
- if (parentRow === undefined)
- return true;
+ if (parentRow === undefined) return true;
- if (row.value >= (parentRow.value * 0.8))
- return true;
+ if (row.value >= (parentRow.value * 0.8)) return true;
return false;
};

Powered by Google App Engine
This is Rietveld 408576698