-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
library angular.dom.platform_spec; | ||
|
||
import '../_specs.dart'; | ||
import 'package:browser_detect/browser_detect.dart'; | ||
|
||
import 'dart:js' as js; | ||
|
||
main() { | ||
describe('WebPlatform', () { | ||
|
||
beforeEachModule((Module module) { | ||
module | ||
..bind(_WebPlatformTestComponent) | ||
|
@@ -19,6 +19,10 @@ main() { | |
it('should scope styles to shadow dom across browsers.', | ||
async((TestBed _, MockHttpBackend backend, WebPlatform platform) { | ||
|
||
// TODO(vicb) WebPlatform does not work with polyfills | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
vicb
Author
Owner
|
||
// see https://github.com/angular/angular.dart/issues/1300 | ||
if (platform.cssShimRequired) return; | ||
|
||
backend | ||
..expectGET('style.css').respond(200, 'span { background-color: red; ' | ||
'}') | ||
|
@@ -58,6 +62,10 @@ main() { | |
it('should not crash with an attribute selector; but wont work either..', | ||
async((TestBed _, MockHttpBackend backend, WebPlatform platform) { | ||
|
||
// TODO(vicb) WebPlatform does not work with polyfills | ||
// see https://github.com/angular/angular.dart/issues/1300 | ||
if (platform.cssShimRequired) return; | ||
|
||
backend | ||
..expectGET('style.css').respond(200, 'span { background-color: red; ' | ||
'}') | ||
|
@@ -76,6 +84,10 @@ main() { | |
it('should scope :host styles to the primary element.', | ||
async((TestBed _, MockHttpBackend backend, WebPlatform platform) { | ||
|
||
// TODO(vicb) WebPlatform does not work with polyfills | ||
// see https://github.com/angular/angular.dart/issues/1300 | ||
if (platform.cssShimRequired) return; | ||
|
||
backend | ||
..expectGET('style.css').respond(200, ':host {' | ||
'background-color: red; }') | ||
|
Do we have to skip this test? The components used in this test use tag selectors, so it is not clear how they are affected by dart-archive#1300.