Giter Club home page Giter Club logo

connect-zero-test's Introduction

connect-zero-test

Browser connection error behavior tester.

Currently browser error handling on the network stack is a bit piss poor. Using the XHR1 api, for example, you generally only get a status of 0 to signify many different classes of errors.

Worse browsers will premptively abort requests based on user navigation in order to save bandwidth. When it occurs the error cases are still about the same.

This project aims to provide a cross-browser test that will help us publically document the behaviors.

Running

npm install
npm start
open http://localhost:8000/

Tests

The following permutations of tests are (planed to be) supported:

Request Types:

  • XHR
  • script tags
  • img tags

Error Cases:

  • Navigation
    • Reload
    • History back/forward APIs
    • History pushState APIs
    • Metarefresh
    • Location modify w/ different URL
    • Location modify w/ only hash
    • Link activation
  • Network connection error
    • Closed connection
    • Partial response
    • Server unreachable
    • DNS failure
    • Timeout
  • Initiating element removed from document

Page States:

  • Page loaded
  • Page still loading
  • Iframe vs. standalone

Monitoring:

  • XHR2 events
  • error event
  • beforeunload event
  • unload event
  • pagehide event

Contributing

See a test case that we are missing? An event or signal that can be used to help differentiate errors on the device? Please let us [know][https://github.com/kpdecker/connect-zero-test/issues/new]!

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.