Commit 9aeeb158 authored by Viktor Lidholt's avatar Viktor Lidholt

Minor fixes to code parser test in gallery (#3439)

parent 731c5903
...@@ -40,8 +40,9 @@ class TestAssetBundle extends AssetBundle { ...@@ -40,8 +40,9 @@ class TestAssetBundle extends AssetBundle {
ImageResource loadImage(String key) => null; ImageResource loadImage(String key) => null;
@override @override
Future<String> loadString(String key) {if (key == 'lib/gallery/example_code.dart') Future<String> loadString(String key) {
return (new Completer<String>()..complete(testCodeFile)).future; if (key == 'lib/gallery/example_code.dart')
return new Future<String>.value(testCodeFile);
return null; return null;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment