Added tests and minified javascript missing in 83a3add4bed8d8d49f93b30c817c66908b0a26ba.

Refs #22038.
Added some tests for #21725.
Fixed test failures when running in a narrow Python build.
Deprecated django.utils.text.javascript_quote.

Refs #21725.
Fixed #22007 -- Fixed cbv docs - make imports consistent

Thanks to trac user kinjal.dixit for the report.