JavaScript event tests

This app exercises Shiny’s JavaScript events API.

  1. A dialog box that says “Shiny is busy!” should appear at least twice in succession immediately after page load.
  2. The side panel should fade during or after the “Shiny is busy!” dialog box has subsided.
  3. The slider input labeled Number of bins should have a red dotted border.
  4. Modifying the “Title” text input should cause the plot title to update.
  5. Pressing the button labeled “Change color” should cause the bars in the plot to change color.
  6. Pressing the button labeled “Change color (canceled)” should have no effect.
  7. Pressing the button labeled “Send message” should cause the busy dialog to appear very briefly.
  8. Pressing the button labeled “Be busy for 2 seconds” should cause the busy dialog to appear for roughly 2 seconds.
  9. Pressing the “Swallow event” button should not cause an alert box that says “Fail” to appear.
  10. The JavaScript console should display the following kinds of messages (input/output names elided):
  • An output ... was bound to Shiny
  • An input ... was bound to Shiny
  • Received a message from Shiny
  • An output is being recalculated...
  1. My output was modified by the shiny:value event. should appear under the slider_info2 heading.
  2. Error: A nice error occurred :) should appear under the Error Info heading.
  3. Warning: Error in renderPrint: A bad error occurred! should appear in the R console at least twice.
  4. Pressing the button labeled “End session” should cause an alert to say “Disconnected!”

              

slider_info2


              

Error Info