1. 02 Oct, 2014 1 commit
  2. 05 Sep, 2014 1 commit
  3. 18 Aug, 2014 1 commit
  4. 23 Jul, 2014 1 commit
  5. 13 Jun, 2014 5 commits
    • Fix JSInput scope leak · fd10fbf7
      Declare variables locally
      - The `allSections` variable was leaking into the global scope, due to a
        typo in the declaration.
      - `dataProcessed` can be declared more narrowly within the callback.
      stv committed
    • Fix JSInput test fixture · cf14dee7
      Clean up fixtures automatically between tests
      - Nesting test fixture markup within a DIV allows Jasmine to
        automatically restore the fixture to a clean state between each test
        run.
      
      Fix id attribute collision typo
      - This looks like a copy/pasta gone wrong; the two test INPUT elements
        were both declared with the same id, `input_1`.
      
      Remove trailing whitespace
      stv committed
    • Remove superfluous JSInput test · bdf90bfc
      The behavior previously tested here was to check that if a JSInput
      element was marked as not processed, re-walking the DOM *should* have
      reinitialized it. Unfortunately, this behavior is not supported by the
      underlying JSChannel library. In fact, if JSChannel detects an existing
      channel with the same origin and scope, it throws an uncaught exception,
      leaving the DOM in a "broken" state.
      
      JSInput will prevent duplicates from being added, as long as we don't
      manually update the `data-processed` attribute. This behavior is already
      being tested.
      stv committed
    • Fix JSInput tests · 60a9e998
      Select DOM elements with wildcard syntax
      
      - DOM lookups were being done with non-existent literal selectors, so it
        was returning empty lists. As assertions were to be made while
        iterating over the list of elements, nothing was actually being
        verified.
      
      - Common code has been centralized in the setup function. By declaring
        CSS selectors once, we minimize the odds of inadvertently using the
        wrong selector, as happened here.
      
      - Had these tests actually been iterating over a non-empty list, this
        would have thrown undefined exceptions. jQuery.each calls its handler
        with an index and an item/object as the arguments. However, the object
        is a DOM-object, not a jQuery-object.  These tests break, as they had
        assumed the latter.
      stv committed
    • Ensure JSInput tests actually run · e2cab190
      This test currently fails, meaning that the existing tests weren't
      testing what they claimed.
      
      Assertions are made for each element returned by the CSS selectors.
      However, the selectors are assumed to be wildcard matches, but are
      actually literal selectors. As there are no matched elements, this
      causes the assertions to be (silently) checked zero times, without
      failure.
      stv committed
  6. 03 Jun, 2014 1 commit
  7. 22 May, 2014 3 commits
  8. 18 Apr, 2014 1 commit
  9. 20 Mar, 2014 1 commit
  10. 20 Dec, 2013 2 commits
  11. 19 Nov, 2013 1 commit
  12. 09 Oct, 2013 2 commits
  13. 30 Aug, 2013 1 commit
  14. 22 Aug, 2013 2 commits
  15. 21 Aug, 2013 2 commits
  16. 13 Aug, 2013 1 commit
    • Fix initial loading bug. · e312344d
      Change the `MathJax.Hub.Queue(initializeRequest)` to a simpler function call
      (`initializeRequest.call(this)`). This was failing to give a proper context
      to initializeRequest, and `this.value` was turning up as `undefined`.
      
      Also add a fallback if we need to display some code before MathJax finishes
      its original typesetting.
      
      I was stubbing out `Queue` in my specs, so the tests had to be changed around
      a little.
      Peter Baratta committed
  17. 12 Aug, 2013 1 commit
    • Create a new response type for Numerical/Formula · 735e3b01
      Named `FormulaEquationInput` (name up for debate)
      
      - Based off ChemEqnIn
      - Add FormulaEquationInput in inputtypes.py
      - Add a call to a skeleton method for a preview
      
      javascript:
      
      - Queue up some MathJax
      - Put some ordering on the AJAX requests: add a parameter when the request was started, when it returns check that it isn't outdated before displaying the preview
      - Tests
      
      Note: we moved the `jsinput` tests and DISABLED them, because they were causing the tests to fail.
      Peter Baratta committed
  18. 18 Jul, 2013 1 commit
  19. 08 Jul, 2013 1 commit
  20. 01 Jul, 2013 1 commit
  21. 26 Jun, 2013 1 commit
  22. 25 Jun, 2013 1 commit
  23. 24 Jun, 2013 1 commit
  24. 19 Jun, 2013 1 commit
  25. 15 Apr, 2013 1 commit
  26. 21 Mar, 2013 1 commit
  27. 19 Mar, 2013 1 commit
  28. 14 Mar, 2013 1 commit
  29. 13 Mar, 2013 1 commit
  30. 08 Mar, 2013 1 commit