From 6d61cb981842941b6146fc307650632686322320 Mon Sep 17 00:00:00 2001 From: Rachel Friedman Date: Wed, 25 Jul 2018 16:51:12 -0700 Subject: [PATCH] chore(switch): Merge master into feat/switch-update (#3215) --- .travis.yml | 19 +- demos/list.html | 98 ++-- demos/list.scss | 1 + demos/switch.html | 6 +- demos/typography.html | 15 + demos/typography.scss | 53 ++ docs/open_source/release-process.md | 41 +- karma.conf.js | 123 +++-- package-lock.json | 33 +- package.json | 1 + packages/mdc-chips/README.md | 8 +- packages/mdc-chips/chip-set/adapter.js | 14 - packages/mdc-chips/chip-set/foundation.js | 25 +- packages/mdc-chips/chip-set/index.js | 35 +- packages/mdc-chips/chip/adapter.js | 28 - packages/mdc-chips/chip/foundation.js | 30 -- packages/mdc-chips/chip/index.js | 55 +- packages/mdc-fab/README.md | 13 + packages/mdc-list/README.md | 23 +- packages/mdc-list/mdc-list.scss | 41 +- packages/mdc-select/README.md | 21 +- packages/mdc-select/foundation.js | 46 +- packages/mdc-select/index.js | 68 +-- packages/mdc-switch/package.json | 1 + packages/mdc-typography/README.md | 2 + packages/mdc-typography/_mixins.scss | 25 + test/screenshot/README.md | 103 +++- test/screenshot/golden.json | 57 +- test/screenshot/infra/commands/approve.js | 11 +- test/screenshot/infra/commands/build.js | 61 ++- test/screenshot/infra/commands/clean.js | 12 +- test/screenshot/infra/commands/demo.js | 16 +- test/screenshot/infra/commands/index.js | 11 +- test/screenshot/infra/commands/proto.js | 21 +- test/screenshot/infra/commands/serve.js | 28 +- test/screenshot/infra/commands/test.js | 489 +++++++++++++++++- test/screenshot/infra/commands/travis.sh | 64 ++- test/screenshot/infra/lib/cbt-api.js | 124 ++++- test/screenshot/infra/lib/cli.js | 338 +----------- test/screenshot/infra/lib/cloud-storage.js | 22 +- test/screenshot/infra/lib/constants.js | 31 +- test/screenshot/infra/lib/controller.js | 179 ++----- test/screenshot/infra/lib/diff-base-parser.js | 412 +++++++++++++++ test/screenshot/infra/lib/git-repo.js | 70 ++- test/screenshot/infra/lib/github-api.js | 180 +++++-- test/screenshot/infra/lib/golden-io.js | 56 +- test/screenshot/infra/lib/local-storage.js | 57 +- test/screenshot/infra/lib/logger.js | 6 +- test/screenshot/infra/lib/process-manager.js | 17 +- test/screenshot/infra/lib/report-builder.js | 86 ++- test/screenshot/infra/lib/report-writer.js | 3 +- test/screenshot/infra/lib/selenium-api.js | 274 +++++++++- test/screenshot/infra/lib/stacktrace.js | 147 ++++++ test/screenshot/infra/lib/user-agent-store.js | 4 +- test/screenshot/infra/proto/mdc.pb.js | 25 +- test/screenshot/infra/proto/mdc.proto | 1 - .../screenshot/infra/types/cbt-api-externs.js | 162 ++++++ test/screenshot/infra/types/cli-types.js | 26 + .../infra/types/node-api-externs.js | 82 +++ .../externs.js => types/report-ui-types.js} | 102 +--- test/screenshot/report/_collection.hbs | 3 + test/screenshot/report/_footer.hbs | 4 +- test/screenshot/report/_metadata.hbs | 3 - test/screenshot/report/report.js | 32 +- test/screenshot/report/report.scss | 2 +- test/screenshot/run.js | 94 ++-- .../spec/mdc-drawer/classes/permanent.html | 8 +- .../spec/mdc-drawer/classes/persistent.html | 8 +- .../spec/mdc-drawer/classes/temporary.html | 8 +- test/screenshot/spec/mdc-drawer/fixture.scss | 5 + .../mixins/fill-color-accessible.html | 8 +- .../spec/mdc-drawer/mixins/fill-color.html | 8 +- .../spec/mdc-drawer/mixins/ink-color.html | 8 +- .../classes/baseline-textfield.html | 61 +++ test/screenshot/spec/mdc-textfield/fixture.js | 3 + .../spec/mdc-textfield/fixture.scss | 23 + .../mdc-chips/mdc-chip-set.foundation.test.js | 80 +-- test/unit/mdc-chips/mdc-chip-set.test.js | 20 - .../mdc-chips/mdc-chip.foundation.test.js | 127 ++--- test/unit/mdc-chips/mdc-chip.test.js | 51 -- .../unit/mdc-select/foundation-events.test.js | 71 --- test/unit/mdc-select/foundation.test.js | 134 ++--- test/unit/mdc-select/mdc-select.test.js | 79 ++- 83 files changed, 3210 insertions(+), 1732 deletions(-) create mode 100644 test/screenshot/infra/lib/diff-base-parser.js create mode 100644 test/screenshot/infra/lib/stacktrace.js create mode 100644 test/screenshot/infra/types/cbt-api-externs.js create mode 100644 test/screenshot/infra/types/cli-types.js create mode 100644 test/screenshot/infra/types/node-api-externs.js rename test/screenshot/infra/{lib/externs.js => types/report-ui-types.js} (55%) create mode 100644 test/screenshot/spec/mdc-textfield/classes/baseline-textfield.html create mode 100644 test/screenshot/spec/mdc-textfield/fixture.js create mode 100644 test/screenshot/spec/mdc-textfield/fixture.scss delete mode 100644 test/unit/mdc-select/foundation-events.test.js diff --git a/.travis.yml b/.travis.yml index ac57df557e1..ab4dff71e4e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -33,13 +33,14 @@ matrix: - node_js: 8 env: - TEST_SUITE=screenshot + git: + depth: 200 script: npm run screenshot:test -- --no-fetch -before_install: - # Source the script to run it in the same shell process. This ensures that any environment variables set by the - # script are visible to subsequent Travis CLI commands. - # https://superuser.com/a/176788/62792 - - source test/screenshot/infra/commands/travis.sh -install: - - rm -rf node_modules - - npm install - #- npm ls # Noisy output, but useful for debugging npm package dependency version issues + before_install: + # Source the script to run it in the same shell process. This ensures that any environment variables set by the + # script are visible to subsequent Travis CLI commands. + # https://superuser.com/a/176788/62792 + - source test/screenshot/infra/commands/travis.sh + install: + - npm install + #- npm ls # Noisy output, but useful for debugging npm package dependency version issues diff --git a/demos/list.html b/demos/list.html index 819e3d7b8e9..b6ae33b7325 100644 --- a/demos/list.html +++ b/demos/list.html @@ -44,7 +44,7 @@ - Photos + Photos Jan 9, 2014 Folders - Photos + Photos Jan 9, 2014 Folders - Recipes + Recipes Jan 17, 2014 Folders - Work + Work Jan 28, 2014 Files - Vacation Itinerary + Vacation Itinerary Jan 10, 2014 Files - Kitchen Remodel + Kitchen Remodel Jan 20, 2014 Text-Only aria-orientation="vertical">
  • - Two-line item + Two-line item Secondary text
  • - Two-line item + Two-line item Secondary text
  • - Two-line item + Two-line item Secondary text
  • @@ -620,19 +620,19 @@

    Text-Only (Dense)

    aria-orientation="vertical">
  • - Two-line item + Two-line item Secondary text
  • - Two-line item + Two-line item Secondary text
  • - Two-line item + Two-line item Secondary text
  • @@ -645,21 +645,21 @@

    Graphic

  • - Two-line item + Two-line item Secondary text
  • - Two-line item + Two-line item Secondary text
  • - Two-line item + Two-line item Secondary text
  • @@ -672,21 +672,21 @@

    Graphic (Dense)

  • - Two-line item + Two-line item Secondary text
  • - Two-line item + Two-line item Secondary text
  • - Two-line item + Two-line item Secondary text
  • @@ -699,21 +699,21 @@

    Avatar List

  • - Two-line item + Two-line item Secondary text
  • - Two-line item + Two-line item Secondary text
  • - Two-line item + Two-line item Secondary text
  • @@ -726,21 +726,21 @@

    Avatar List (dense)

  • - Two-line item + Two-line item Secondary text
  • - Two-line item + Two-line item Secondary text
  • - Two-line item + Two-line item Secondary text
  • @@ -752,21 +752,21 @@

    Metadata

    aria-orientation="vertical">
  • - Two-line item + Two-line item Secondary text $10.00
  • - Two-line item + Two-line item Secondary text $20.00
  • - Two-line item + Two-line item Secondary text $30.00 @@ -779,21 +779,21 @@

    Metadata (Dense)

    aria-orientation="vertical">
  • - Two-line item + Two-line item Secondary text $10.00
  • - Two-line item + Two-line item Secondary text $20.00
  • - Two-line item + Two-line item Secondary text $30.00 @@ -809,7 +809,7 @@

    Example - Two-line Avatar + Text + Icon

    - Photos + Photos Jan 9, 2014
    Example - Two-line Avatar + Text + Icon - Recipes + Recipes Jan 17, 2014 Example - Two-line Avatar + Text + Icon - Work + Work Jan 28, 2014 Lists w/ Ellipsis - Photos - - This is some secondary text - + Photos + This is some secondary text - Photos of my best photography using my finely tuned skills and eye - - This is some secondary text - + Photos of my best photography using my finely tuned skills and eye + This is some secondary text - Work Photos - - This is a description of work photos from the years 2018 to present time while I was a barista - + Work Photos + This is a description of work photos from the years 2018 to present time while I was a barista