Code Monkey home page Code Monkey logo

Comments (10)

tario avatar tario commented on May 28, 2024

Ok! I will work on that. I will start by writing tests for GamepadController class (mocking gamepad API) . We need tests for react components that were modified too ?

from jsnes-web.

bfirsh avatar bfirsh commented on May 28, 2024

Awesome thank you! Testing the integration of the modal with the controllers is probably a good idea (I don’t think there is any testing for the custom keyboard commands) but a test for the gamepadcontroller would also be useful. :)

from jsnes-web.

tario avatar tario commented on May 28, 2024

I can't see tests on current version of jsnes-web

So, I will follow this guide https://facebook.github.io/create-react-app/docs/running-tests to start adding the tests. It is ok ? (sorry, I am newbie on react)

from jsnes-web.

bfirsh avatar bfirsh commented on May 28, 2024

No worries! There are a couple really simple ones - the files ending in .test.js in src/.

from jsnes-web.

tario avatar tario commented on May 28, 2024

Great, I will follow the actual scheme then

from jsnes-web.

bfirsh avatar bfirsh commented on May 28, 2024

@tario Seems like the gamepad support is breaking non-webkit browsers too. This error is coming from IE: https://sentry.io/share/issue/b0c3a6b734294b30b6414c548d57a410/

from jsnes-web.

tario avatar tario commented on May 28, 2024

I am sorry to hear that, maybe I should fix that in a separated pull-request. What platforms we should cover ? IE? edge too?

from jsnes-web.

tario avatar tario commented on May 28, 2024

Just tested jsnes.org on edge and IE11 and the gamepad seems to be broken at all. Also tested on https://html5gamepad.com/ and again the gamepad doesn't seems to work at all. Gamepad API should be working on these browsers ?

from jsnes-web.

tario avatar tario commented on May 28, 2024

Anyway. I will fix the case where both getGamepads and webkitGetGamepads are not present. I think I have to code more defensively, sorry

from jsnes-web.

tario avatar tario commented on May 28, 2024

Here it is #167

from jsnes-web.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.