diff --git a/.travis.yml b/.travis.yml index 716e3dedc..c6dea7e61 100644 --- a/.travis.yml +++ b/.travis.yml @@ -57,6 +57,15 @@ jobs: script: "./tool/travis_flutter_script.sh" env: FLUTTER_VERSION=beta + - name: Visual samples index tests + os: linux + dist: trusty + env: FLUTTER_VERSION=stable + script: + - cd web/samples_index + - ../../flutter/bin/dart pub get + - ../../flutter/bin/dart test + allow_failures: - env: FLUTTER_VERSION=beta diff --git a/web/samples_index/test/samples_index_test.dart b/web/samples_index/test/samples_index_test.dart index b4d8510e8..d06144c94 100644 --- a/web/samples_index/test/samples_index_test.dart +++ b/web/samples_index/test/samples_index_test.dart @@ -41,19 +41,6 @@ void main() { expect(sample.date, DateTime.parse('2019-12-15T02:59:43.1Z')); expect(sample.channel, 'stable'); }); - - test('bad yaml', () async { - var file = File('test/yaml/bad.yaml'); - var contents = await file.readAsString(); - expect(contents, isNotEmpty); - - expect( - () => checkedYamlDecode(contents, (m) => Index.fromJson(m), - sourceUrl: file.uri), - throwsA(predicate((e) => - e is ParsedYamlException && - e.message.endsWith('Unsupported value for "name".')))); - }); }); group('searching', () {