diff --git a/fixtures/schedule/index.html b/fixtures/schedule/index.html new file mode 100644 index 0000000000000..c8cb8083ec8b8 --- /dev/null +++ b/fixtures/schedule/index.html @@ -0,0 +1,245 @@ + + + + + Schedule Test Page + + +

Schedule Fixture

+

+ This fixture is for manual testing purposes, and the patterns used in + implementing it should not be used as a model. This is mainly for anyone + working on making changes to the `schedule` module. +

+

Tests:

+
    +
  1. + +

    Calls the callback with the frame when not blocked:

    +
    Expected:
    +
    + scheduled Cb1 +
    + frame 1 started +
    + cb1 called with argument of {"didTimeout":false} +
    + frame 2 started +
    + frame 3 started... we stop counting now. +
    +
    -------------------------------------------------
    +
    If you see the same above and below it's correct. +
    -------------------------------------------------
    +
    Actual:
    +
    +
  2. +
  3. +

    Accepts multiple callbacks and calls within frame when not blocked

    + +
    Expected:
    +
    + scheduled CbA +
    + scheduled CbB +
    + frame 1 started +
    + cbA called with argument of {"didTimeout":false} +
    + cbB called with argument of {"didTimeout":false} +
    + frame 2 started +
    + frame 3 started... we stop counting now. +
    +
    -------------------------------------------------
    +
    If you see the same above and below it's correct. +
    -------------------------------------------------
    +
    Actual:
    +
    +
  4. +
  5. +

    Schedules callbacks in correct order when they use scheduleWork to schedule themselves

    + +
    Expected:
    +
    + scheduled CbA +
    + scheduled CbB +
    + frame 1 started +
    + scheduled CbA again +
    + cbA0 called with argument of {"didTimeout":false} +
    + cbB called with argument of {"didTimeout":false} +
    + cbA1 called with argument of {"didTimeout":false} +
    + frame 2 started +
    + frame 3 started... we stop counting now. +
    +
    -------------------------------------------------
    +
    If you see the same above and below it's correct. +
    -------------------------------------------------
    +
    Actual:
    +
    +
  6. +
  7. +

    Calls timed out callbacks and then any more pending callbacks, defers others if time runs out

    + +
    Expected:
    +
    + scheduled cbA +
    + scheduled cbB +
    + scheduled cbC +
    + scheduled cbD +
    + frame 1 started +
    + cbC called with argument of {"didTimeout":true} +
    + cbA called with argument of {"didTimeout":false} +
    + cbA running and taking some time +
    + frame 2 started +
    + cbB called with argument of {"didTimeout":false} +
    + cbD called with argument of {"didTimeout":false} +
    + frame 3 started... we stop counting now. +
    +
    -------------------------------------------------
    +
    If you see the same above and below it's correct. +
    -------------------------------------------------
    +
    Actual:
    +
    +
  8. +
+ + + + + diff --git a/packages/react-scheduler/src/__tests__/test_page.html b/packages/react-scheduler/src/__tests__/test_page.html deleted file mode 100644 index 3b5af08b396b8..0000000000000 --- a/packages/react-scheduler/src/__tests__/test_page.html +++ /dev/null @@ -1,10 +0,0 @@ - - - - - React Scheduler test page - - -

Hello World

- -