Skip to content
Permalink
Browse files

test: MaterialAttribute_test tested against wrong attribute

  • Loading branch information...
MikeMitterer committed Nov 2, 2018
1 parent 8edc185 commit 0f9c6ec9d3823f18195d24a4ecede19a033148d6
Showing with 3 additions and 3 deletions.
  1. +3 −3 test/directive/MaterialAttribute_test.dart
@@ -19,7 +19,7 @@ main() async {
// configLogging();

final String html = '''
<div class="testtext" mdl-attribute="hasBorder : 'border: 5px solid yellow'">
<div class="testtext" mdl-attribute="hasBorder : style='border: 5px solid yellow'">
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et
dolore magna aliquyam erat, sed diam voluptua.
</div>
@@ -60,9 +60,9 @@ main() async {
final testStore = ioc.IOCContainer().resolve(service.SimpleDataStore).as<_TestStore>();
testStore.withBorder = true;

await waitUntil(() => div.attributes.containsKey("border"));
await waitUntil(() => div.attributes.containsKey("style"));

expect(div.attributes["border"],"5px solid yellow");
expect(div.attributes["style"],"border: 5px solid yellow");
}); // end of 'Change class via model' test

});

0 comments on commit 0f9c6ec

Please sign in to comment.
You can’t perform that action at this time.