
    assert.strictEqual(
        importer.extractSubtraces()[0].toString(), ORIGINAL_DATA);
  });

  test('import', function() {
    const gzipData = Base64.atob(GZIP_DATA_BASE_64);
    assert.isTrue(tr.e.importer.GzipImporter.canImport(gzipData));

    const model = tr.c.TestUtils.newModelWithEvents(gzipData);
    const threads = model.getAllThreads();
    assert.strictEqual(threads.length, 1);

    const slice = findSliceNamed(threads[0].sliceGroup, 'a');
    assert.strictEqual(slice.category, 'foo');
  }