Commit 89bbb449 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Unify naming of "doctests".

Some places had "doctest" while others had "doctests" - now all are
using the plural form.
parent 8acf8fc7
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -187,7 +187,7 @@ class JsDuckRunner
    ]
  end

  def add_doctest
  def add_doctests
    @options += [
      "--title", "Sencha Docs - Ext JS 4.0",
      "--footer", "Ext JS 4.0 Docs - Generated with <a href='https://github.com/senchalabs/jsduck'>JSDuck</a> VERSION. <a href='http://www.sencha.com/legal/terms-of-use/'>Terms of Use</a>",
@@ -394,15 +394,15 @@ task :ext4, [:mode] => :sass do |t, args|
end

desc "Run JSDuck with example test hacks\n" +
     "doctest             - creates debug/development version\n" +
     "doctest[export]     - creates export/deployable version\n"
task :doctest, [:mode] => :sass do |t, args|
     "doctests             - creates debug/development version\n" +
     "doctests[export]     - creates export/deployable version\n"
task :doctests, [:mode] => :sass do |t, args|
  mode = args[:mode] || "debug"
  throw "Unknown mode #{mode}" unless ["debug", "export"].include?(mode)
  compress if mode == "export"

  runner = JsDuckRunner.new
  runner.add_doctest
  runner.add_doctests
  runner.add_debug if mode == "debug"
  runner.add_seo
  runner.run
+1 −5
Original line number Diff line number Diff line
@@ -19,10 +19,6 @@ Ext.define('Docs.controller.DocTests', {
            ref: 'index',
            selector: '#doctestsindex'
        },
        {
            ref: 'docTestGrid',
            selector: '#doctestgrid'
        },
        {
            ref: 'testContainer',
            selector: '#testcontainer'
@@ -33,7 +29,7 @@ Ext.define('Docs.controller.DocTests', {
        this.addEvents('loadIndex');

        this.control({
            '#doctestgrid': {
            '#doctestsgrid': {
                afterrender: this.onGridAfterRender
            }
        });
+2 −2
Original line number Diff line number Diff line
@@ -51,7 +51,7 @@ Ext.define('Docs.view.doctests.Index', {
                },
                {
                    xtype: 'grid',
                    itemId: 'doctestgrid',
                    itemId: 'doctestsgrid',
                    title: 'Doc Tests',
                    padding: '5 0 5 0',
                    autoScroll: true,
@@ -98,7 +98,7 @@ Ext.define('Docs.view.doctests.Index', {
        var runAllButton = Ext.ComponentQuery.query('#runallbutton', this)[0];
        runAllButton.on('click', this.onRunAllButtonClick, this);

        var testGrid = Ext.ComponentQuery.query('#doctestgrid', this)[0];
        var testGrid = Ext.ComponentQuery.query('#doctestsgrid', this)[0];
        testGrid.on('itemclick', this.onRunLinkClick, this, {
            delegate: '.doc-test-run',
            stopEvent: true