noVNC/tests
Andrew Webster e0750f9b2c Use localstorage only to initialize settings map
This only reads from localstorage in order to initialize the settings
map.  After initializaton, reads will return the value from the map.

When writing a value, the settings map and the local storage
are updated, unless the setting is a default value or derived from
the query string.

This has a few advantages:
 1. Saved settings will not be overridden by settings specified in
the query string.  This means a setting could be temporarily changed
using the query string, but once removed from the query string, the
setting would return back to what the user selected.
 2. Default values will not be saved.  If a user has always used
the default value for a setting, then they can move to a new version
with different defaults without clearing localstorage.
 3. Changes made to localstorage in a session running in a different
window will not affect the settings in the current window (until
the page is refreshed).

Regarding eraseSetting:

It is possible that another tab could change the value, leading
to an unexpected value change in the tab that deletes.  However,
this function is currently unused, so this will be evaluted if
and when it used.
2018-02-13 10:22:21 -05:00
..
assertions.js Simpler reporting when display output size mismatches 2017-12-14 12:58:57 +01:00
fake.websocket.js Update tests to work with new structure 2017-03-21 17:39:07 -04:00
karma-test-main.js Setup chai extensions centrally 2017-09-28 14:10:19 +02:00
playback-ui.js Update vnc_playback.html to follow current API 2018-01-26 11:07:14 +01:00
playback.js Better cleanup in vnc_playback.html 2018-01-26 11:07:58 +01:00
test.base64.js Remove trailing whitespace 2017-05-13 01:56:24 +02:00
test.display.js Remove jshint comments 2018-01-31 07:38:29 -08:00
test.helper.js Move browser checks to browser.js 2018-01-30 08:35:47 -08:00
test.keyboard.js Merge pull request #1009 from juanjoDiaz/move_browser_checks 2018-02-01 10:33:28 -05:00
test.localization.js Remove jshint comments 2018-01-31 07:38:29 -08:00
test.mouse.js Remove jshint comments 2018-01-31 07:38:29 -08:00
test.rfb.js Remove jshint comments 2018-01-31 07:38:29 -08:00
test.util.js Remove jshint comments 2018-01-31 07:38:29 -08:00
test.websock.js Remove jshint comments 2018-01-31 07:38:29 -08:00
test.webutil.js Use localstorage only to initialize settings map 2018-02-13 10:22:21 -05:00
vnc_playback.html Update vnc_playback.html to follow current API 2018-01-26 11:07:14 +01:00