Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Chrome Extension integration testing with Chrome API

I've developed a Google Chrome extension. How can I test it ? It is straight forward if there are only plain javaScript. But here in my methods there are lot of Chrome API references available. It is not possible to do unit testing as well.

So how can I test my extension with those API features. ?

like image 209
prime Avatar asked Oct 13 '13 02:10

prime


1 Answers

Use DI to inject API methods so that you can work on any other platforms.

like image 132
user3171412 Avatar answered Oct 04 '22 04:10

user3171412