canvas-lms/spec
Benjamin Porter 5a975d407f Include pdfjs in preferred_plugins array
Instead of sending a separate param to canvadocs for pdfjs as
a preferred plugin, just put it in the preferred_plugins array (which
used to be called preferred_renders)

Refs CNVS-30582

Test Plan:

    - This is very difficult to test manually, particularly without
      changing any code.  The reason for this is that canvadocs doesn't
      currently do anything with the pdfjs preferred plugin so you can't
      just check for that behavior.  However, this is something you can
      do even tho it isn't ideal (and this is how I tested this patch in
      development):
      - get canvas working with a canvadocs instance on which you can
        modify code.  By modifying the canvadocs instead of the canvas,
        the integrity of this patch is maintained for test purposes.
      - In the canvadocs session controller
        (app/controllers/session_controller.js), add a log statement to
        display what comes in in the body of the request.  Something
        like:
        - console.log('Request body: ')
        - console.dir(req.body)
      - Submit an assignment to a course as a student.
      - As a teacher, open speedgrader from that assignment.  This will
        cause a new canvadocs viewing session to be created.
      - In the console output of the canvadocs instance, see that the
        body did not include a preferred_plugin of pdfjs.
      - Toggle the feature flag to enable new annotations.
      - Repeat opening speedgrader but this time observe that the body
        includes pdfjs in the list of preferred_plugins.

Change-Id: Ie3e16e1331fcdd757e96888f033e8341e7d6a0bc
Reviewed-on: https://gerrit.instructure.com/86549
Tested-by: Jenkins
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
Reviewed-by: Brad Horrocks <bhorrocks@instructure.com>
Product-Review: Benjamin Porter <bporter@instructure.com>
2016-08-03 03:07:50 +00:00
..
apis allow teachers to set lti submission type when grading 2016-08-02 17:59:34 +00:00
coffeescripts spec: convert coffeescript EditConferenceViewSpec to javascript 2016-07-29 20:37:00 +00:00
controllers Allow recurring calendar events on user calendars 2016-07-29 15:58:59 +00:00
factories associate grading period groups with root accounts 2016-07-01 20:15:56 +00:00
fixtures separate discussion topics and announcements in importers 2016-07-12 13:30:10 +00:00
gem_integration/canvas_connect switch yaml engine to psych 2016-04-22 16:51:15 +00:00
helpers include siteadmin css/js always if set in newUI 2016-08-01 21:08:13 +00:00
initializers centralize locale conversions to locales.yml 2016-04-25 22:46:30 +00:00
integration fix account group wiki pages 2016-07-27 17:10:49 +00:00
javascripts Make uploads via upload dialog work 2016-08-02 19:10:46 +00:00
lib include siteadmin css/js always if set in newUI 2016-08-01 21:08:13 +00:00
messages don't show scores in messages if account setting is reverted 2016-07-13 19:52:24 +00:00
middleware remove float rounding monkey-patch 2016-04-22 18:17:18 +00:00
migrations create enrollment_states table 2016-06-27 13:56:02 +00:00
models Include pdfjs in preferred_plugins array 2016-08-03 03:07:50 +00:00
observers added live events for assignments and submissions 2015-12-18 21:41:50 +00:00
presenters show the mark done module requirement button when possible 2016-06-16 14:32:14 +00:00
selenium Spec: Move outcomes specs to their own directory. 2016-08-02 22:22:36 +00:00
serializers allow course admins without manage rights to preview quizzes 2016-08-02 12:47:16 +00:00
shared_examples rails 4.2: s/destroy!/destroy_permanently! 2016-01-07 14:00:13 +00:00
support spec: refactor custom matchers and waiting, refs SD-1147, SD-1145 2016-05-20 18:41:23 +00:00
views change draft comment button text to submit 2016-07-25 13:53:13 +00:00
ams_spec_helper.rb remove rails 2 support 2014-08-06 18:16:19 +00:00
broadcast_integration.rb
cassandra_spec_helper.rb don't log errors for unconfigured auditors 2016-03-31 17:11:36 +00:00
coverage_tool.rb spec: coverage tool tweaking for test-queue 2016-01-28 18:16:16 +00:00
import_helper.rb imported link refactoring 2015-06-16 20:04:32 +00:00
lti_spec_helper.rb fix problems with lti2 and assignments 2016-04-25 20:22:36 +00:00
mocha_extensions.rb rails4: fix mocha instantiation 2015-07-01 17:23:09 +00:00
mocha_rspec_adapter.rb fix Style/EmptyLineBetweenDefs issue 2015-04-29 16:28:39 +00:00
nested_instafail_formatter.rb remove rails 2 support 2014-08-06 18:16:19 +00:00
quiz_spec_helper.rb partition versions 2016-05-27 17:22:10 +00:00
rcov.opts
sharding_spec_helper.rb spec: ensure each shard always has built-in roles, refs SD-857 2016-02-29 19:31:26 +00:00
spec.opts
spec_helper.rb add grading period set endpoints 2016-06-01 13:39:33 +00:00