1
0
Fork 0
liza/test
Mike Gerwitz 2045c76f7e Integrate Store into DataValidator, ValidStateMonitor
ValidStateMonitor now uses a Store in place of the original primitive
object-based diff format.  The original format is translated by
DataValidator.  The code is in a transitional state, and considering
the amount of time we spend on various areas of this project, will
likely stay this way for a while.

* src/validate/DataValidator.js
  (__construct): Accept Store factory parameter.
  (_store_factory): Add field.
  (_createStores): Add method.
  (_validate): Handle Store.
  (updateFailures): Add method.
  (_populateStore): Add method.

* test/validate/DataValidatorTest.js: Add tests.

* src/validate/ValidStateMonitor.js
  (update): Enforce Store diff.
    Wait to process failures until fixes are calculated.
  (_checkFailureFix): Handle asynchronous, Promise-based diff.
  (_checkCauseFix): Extract logic from _checkCauseFix.

* test/validate/ValidStateMonitorTest.js:
  Modify test cases to be Promise-based and handle async calls where
  appropriate.  That was a friggin' expensive mess.

DEV-2296
2017-01-29 22:44:27 -05:00
..
dapi Remove debugging console.log from XhrHttpImplTest 2016-04-19 00:05:47 -04:00
store Test to ensure Cascading does not clear self 2017-01-04 16:17:37 -05:00
ui Correct and test GeneralStepUi#scrollTo 2016-08-05 11:45:09 -04:00
validate Integrate Store into DataValidator, ValidStateMonitor 2017-01-29 22:44:27 -05:00
pre.js add es6-promise shim 2016-03-01 00:48:37 -05:00