| commit | b461f9b64b68d02b7a3e7c5a90f1b1fbb94c740c | [log] [tgz] |
|---|---|---|
| author | Priyanka <priyankaspatel@google.com> | Wed Dec 18 17:33:41 2024 +0000 |
| committer | Priyanka <priyankaspatel@google.com> | Wed Dec 18 17:33:41 2024 +0000 |
| tree | 762bb50ec0c5402f9d358911658900733e9f64a9 | |
| parent | 250e0363780be5c7c8283ba2ebf49af32a9c8a3c [diff] |
Add parser test for search descriptors. Bug: 311643446 Test: npm run test:unit:ci Change-Id: I18f09908dec3f04186c48be8f5d8c3b881e8a08d
diff --git a/tools/winscope/src/parsers/search/parser_search_test.ts b/tools/winscope/src/parsers/search/parser_search_test.ts index af06ca1..82ec792 100644 --- a/tools/winscope/src/parsers/search/parser_search_test.ts +++ b/tools/winscope/src/parsers/search/parser_search_test.ts
@@ -59,6 +59,12 @@ expect(parser.getCoarseVersion()).toEqual(CoarseVersion.LATEST); }); + it('has expected descriptors', () => { + expect(parser.getDescriptors()).toEqual([ + 'SELECT * FROM surfaceflinger_layers_snapshot', + ]); + }); + it('has length entries equal to number of rows', () => { expect(parser.getLengthEntries()).toEqual(21); });