diff --git a/engine/src/flutter/tests/raw/null_text_crash-expected.txt b/engine/src/flutter/tests/raw/null_text_crash-expected.txt new file mode 100644 index 00000000000..7e9607842e3 --- /dev/null +++ b/engine/src/flutter/tests/raw/null_text_crash-expected.txt @@ -0,0 +1,6 @@ +CONSOLE: unittest-suite-wait-for-done +CONSOLE: PASS: createText(null) shouldn't crash +CONSOLE: +CONSOLE: All 1 tests passed. +CONSOLE: unittest-suite-success +DONE diff --git a/engine/src/flutter/tests/raw/null_text_crash.dart b/engine/src/flutter/tests/raw/null_text_crash.dart new file mode 100644 index 00000000000..441646ab2a8 --- /dev/null +++ b/engine/src/flutter/tests/raw/null_text_crash.dart @@ -0,0 +1,17 @@ +// Copyright 2015 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:sky' as sky; + +import '../resources/third_party/unittest/unittest.dart'; +import '../resources/unit.dart'; + +void main() { + initUnit(); + + test("createText(null) shouldn't crash", () { + var doc = new sky.Document(); + doc.createText(null); + }); +}