js2gtest: use named keys for featureList and featuresWithParameters API

Previous API:

  featureList: ['kTestFeature', ''],
  featureListWithParameters: [
    ['kTestFeatureWithParam', [['count', '5']]],
  ],

New API:

  // One of "disabled" or "enabled" must be present. Both is fine.
  featureList: {enabled: ['kTestFeature']},
  featuresWithParameters: [
    {
      featureName: 'kTestFeatureWithParam',
      parameters: [{name: 'count', value: 5}],
    },
  ],

R=jordynass@chromium.org
BUG=none

Change-Id: I22d7f131ac091b7c359174dc5390d0c1ca72f447
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1629009
Commit-Queue: Dan Beam <dbeam@chromium.org>
Reviewed-by: Jordy Greenblatt <jordynass@chromium.org>
Cr-Commit-Position: refs/heads/master@{#663386}
7 files changed