sinon-chrome - Testing chrome extensions with Node.js

  •        170

Sinon-chrome is helper tool for unit-testing chromium and Firefox extensions and apps. It mocks all extensions api with sinon stubs that allows you to run tests in Node.js without actual browser. API mocks are generated using official chromium extensions API (Firefox webextensions) schemas that ensures consistency with real API. Actual schemas are taken from Chrome 53 and Firefox 49.

https://github.com/acvetkov/sinon-chrome

Dependencies:

lodash : ^4.16.3
sinon : ^4.4.2
urijs : ^1.18.2

Tags
Implementation
License
Platform

   




Related Projects

browser - The browser extension vault (Chrome, Firefox, Opera, Edge, Safari, & more).

  •    Javascript

The Bitwarden browser extension is written using the Chrome Web Extension API and AngularJS. By default the extension is targeting the production API. If you are running the Core API locally, you'll need to switch the extension to target your local instance. Open src/services/api.service.ts and set this.baseUrl and this.identityBaseUrl to your local API instance (ex. http://localhost:5000).

chrome - GopherJS Bindings for Chrome

  •    Javascript

With the help of the Gopherjs transpiler, you can now write Go code which will be converted into javascript and run in the browser. This library contains the necessary bindings to interact with the Chrome Javascript API in an easy and intuitive way so that you can write Chrome Extensions and Chrome OS apps in Go. The lovely people at Google's Chrome team have written a great post on how to get started building chrome extensions. Within the examples folder you will find a Go version of the JS sample extension they cover in their post.

chrome-extensions-examples - All Chrome Extension examples collected into one repository

  •    Javascript

This is not an official mirror of the Chrome extension examples. Report any issues with the examples themselves to Google's issue trackers/forums. There is an ongoing effort to standardize the Extensions on different browsers, as discussed on MDN and defined in the WebExtensions Spec Draft. The resources on browser support and incompatibilities may be of interest.

webextensions-examples - Example Firefox add-ons created using the WebExtensions API

  •    Javascript

Maintained by the MDN team at Mozilla. WebExtensions are a way to write browser extensions: that is, programs installed inside a web browser that modify the behaviour of the browser or of web pages loaded by the browser. They are built on a set of cross-browser APIs, so WebExtensions written for Google Chrome or Opera will in most cases run in Firefox or Edge too.

crossbuilder - Building web, Electron, Cordova and Chrome apps, and cross-browser extensions with React, Redux and Webpack

  •    Javascript

Building web, Electron, Cordova and Chrome apps, and cross-browser extensions that use Redux actions for messaging. Redux states are synced between background, injected page, app window, extension popup and badge.


mobile-chrome-apps - Chrome apps on Android and iOS

  •    Python

The Chrome Apps for Mobile Toolchain is no longer being actively developed. We intend to keep it functional, but do not intend on adding any new features. Chrome Apps for Mobile is a project based on Apache Cordova to run your Chrome Apps on both Android and iOS. The project provides a native application wrapper around your Chrome App, allowing you to distribute it via the Google Play Store and the Apple App Store. Cordova plugins give your App access to a wide range of APIs, including many of the core Chrome APIs. The newest version of Chrome Apps for Mobile includes Chrome APIs for identity, Google Cloud Messaging (GCM) and rich notifications.

chromedeveditor - Chrome Dev Editor is a developer tool for building apps on the Chrome platform - Chrome Apps and Web Apps, in JavaScript or Dart

  •    Dart

Chrome Dev Editor (CDE) is a developer tool for building apps on the Chrome platform - Chrome Apps and Web Apps, in JavaScript or Dart. CDE is built as a Chrome App written in Dart and uses Polymer. CDE runs on Windows, Mac, Linux, and Chrome OS! CDE supports Git, Polymer, and mobile development. Note: Chrome Dev Editor is no longer being actively developed. We'll do our best to merge your pull requests.

gmail.js - Gmail JavaScript API

  •    Javascript

Gmail.js is meant to be used for creating WebExtension-based browser-extensions, for Chrome, Firefox and other compatible browsers. It cannot be used server-side with Node, or from another web-app to interface with Gmail.

sinon - Test spies, stubs and mocks for JavaScript.

  •    Javascript

Standalone and test framework agnostic JavaScript test spies, stubs and mocks (pronounced "sigh-non", named after Sinon, the warrior).or via sinon's browser builds available for download on the homepage. There are also npm based CDNs one can use.

Awesome-WebExtensions - A curated list of awesome resources for WebExtensions development.

  •    Javascript

A curated list of awesome resources for WebExtensions development. WebExtensions are a cross-browser system for developing browser add-ons. To a large extent the system is compatible with the extension API supported by Google Chrome and Opera. Extensions written for these browsers will in most cases run in Firefox or Microsoft Edge with just a few changes.

Awesome-WebExtensions - A curated list of awesome resources for WebExtensions development.

  •    Javascript

A curated list of awesome resources for WebExtensions development. WebExtensions are a cross-browser system for developing browser add-ons. To a large extent the system is compatible with the extension API supported by Google Chrome and Opera. Extensions written for these browsers will in most cases run in Firefox or Microsoft Edge with just a few changes.

30_seconds_of_knowledge - Google Chrome Extension that lets you gain new developer skills, every time you open a New Tab

  •    Javascript

You can download the Chrome & Firefox Extensions here. This Chrome Extension is built with React and Web Extensions API.

crxviewer - Add-on / web app to view the source code of Chrome / Firefox / Opera 15 extensions and zip files

  •    Javascript

The default action (showing the above options) can be changed via the "Primary action on click" menu that appears when you right-click on the extension button. As mentioned before, this extension activates on the Chrome Web Store by default. It's also possible to view the source code of Chrome, Opera 15+ and Firefox extensions that are hosted elsewhere. Further, there is an option to show a contextmenu entry on links whose target is a Chromium extension. Both features can be toggled at the options page.

EtherAddressLookup - Adds links to strings that look like Ethereum addresses to your favourite blockchain explorer

  •    Javascript

The blacklists found in this repo serve both the EAL Chrome Extension & MetaMask Chrome Extension. We use a Levenshtein distance algoritm to detect similar URLs, so if you encounter an errounously-blocked website, please add it to the whitelist. The master branch is bundled on every release and pushed to the Chrome & Firefox Extension store, you can view/download it here: https://chrome.google.com/webstore/detail/etheraddresslookup/pdknmigbbbhmllnmgdfalmedcmcefdfn for Chrome, and https://addons.mozilla.org/en-US/firefox/addon/etheraddresslookup/ for Firefox.

news-feed-eradicator - A browser extension that deletes your Facebook news feed and replaces it with a nice quote

  •    TypeScript

A browser extension that deletes your Facebook news feed and replaces it with a nice quote. This plugin is built as a WebExtension - a standard for browser plugins currently supported in both Chrome and Firefox.

ext-saladict - 专业网页划词翻译,Chrome/Firefox 扩展

  •    TypeScript

Chrome/Firefox WebExtension. Feature-rich inline translator with PDF support. Vimium compatible. Saladict 6 is a complete rewrite in React Typescript for both Chrome & Firefox. Built for speed, stability and customization.

Splinter - Python test framework for web applications

  •    Python

Splinter is an open source tool for testing web applications using Python. It lets you automate browser actions, such as visiting URLs and interacting with their items. Splinter is an abstraction layer on top of existing browser automation tools such as Selenium, PhantomJS and zope.testbrowser. It has a high-level API that makes it easy to write automated tests of web applications. It has drivers for Chrome and Firefox for browser-based testing, and zope.testbrowser and PhantomJS for headless testing.

chrome-extension-webpack-boilerplate - A basic foundation boilerplate for rich Chrome Extensions using Webpack to help you write modular and modern Javascript code, load CSS easily and automatic reload the browser on code changes

  •    Javascript

A basic foundation boilerplate for rich Chrome Extensions using Webpack to help you write modular and modern Javascript code, load CSS easily and automatic reload the browser on code changes. I'll assume that you already read the Webpack docs and the Chrome Extension docs.