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

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

Issue 2776653002: [ESLint] Fix violations when enabling curly rule in eslint. (Closed)
Patch Set: rebase 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
« no previous file with comments | « tracing/tracing/ui/base/table_header_cell.html ('k') | tracing/tracing/ui/base/timing_tool.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 b571aaefd8c7fc9d23fbde9036528a3f1b955404..f68a51f435a6f9e145082ec919d6616a36215e91 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';
}
@@ -1229,8 +1228,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);
@@ -1803,11 +1803,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;
};
« no previous file with comments | « tracing/tracing/ui/base/table_header_cell.html ('k') | tracing/tracing/ui/base/timing_tool.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698