From 2af20933795a1c9f6ff5d081822f9077d9183d50 Mon Sep 17 00:00:00 2001 From: gdh1995 Date: Sun, 21 Feb 2016 01:20:46 +0800 Subject: fix a crash of unit tests --- CREDITS | 1 + tests/unit_tests/test_chrome_stubs.coffee | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CREDITS b/CREDITS index e05a1c6a..b11497ca 100644 --- a/CREDITS +++ b/CREDITS @@ -44,5 +44,6 @@ Contributors: Shiyong Chen (github: UncleBill) Utkarsh Upadhyay (github: PrestanceDesign) + Dahan Gong (github: gdh1995) Feel free to add real names in addition to GitHub usernames. diff --git a/tests/unit_tests/test_chrome_stubs.coffee b/tests/unit_tests/test_chrome_stubs.coffee index 8b816cd4..bbcd01e7 100644 --- a/tests/unit_tests/test_chrome_stubs.coffee +++ b/tests/unit_tests/test_chrome_stubs.coffee @@ -60,6 +60,8 @@ exports.chrome = onRemoved: addListener: () -> true getAll: () -> true + onFocusChanged: + addListener: () -> true browserAction: setBadgeBackgroundColor: -> -- cgit v1.2.3