Skip to content

#27 - #27

Closed
joewalker wants to merge 52 commits into
campd:7bc104c13ebb9c473ba49a7b4ff90d9ddbc613d2from
mozilla:67d52054bef9e6cd13bd4824c0d78c9b9f31fa7d
Closed

#27#27
joewalker wants to merge 52 commits into
campd:7bc104c13ebb9c473ba49a7b4ff90d9ddbc613d2from
mozilla:67d52054bef9e6cd13bd4824c0d78c9b9f31fa7d

Conversation

@joewalker

Copy link
Copy Markdown
Collaborator

No description provided.

joewalker and others added 30 commits November 29, 2011 12:59
- Also move vi/edit and sleep to basic.js so they live on
- Tweak the text
- Introduce an 'intro' command to display it again
- Tweak the shortcut styling
- Make the entire message hide when 'Got it' is pressed not just the button
- Add createView to context so commands dont need to use require
- Demo of ways of specifying l10n text
- Leave bugz command out of demo set until we fix it
- Document that exec the return value might change shape
Anyone using our code as an example of how to write commands should be
directed to use gcli.addCommand rather than canon.addCommand. The 'real'
function is attached to canon, however we want to keep canon as private as
we can, and encourage the exported use of gcli.addCommand instead.
This is the first in a number of changes. We generally use undefined to
mean 'missing value' and 'null' to mean deliberately set to nothing. For
example setting param.defaultValue=null means the user doesn't need to
specify a value on the command line. So it makes sense to use undefined
as the default value for conversions rather than null.
- Properly extract defaultValues from paramSpec to Parameter
- The concept of getDefault goes and is replaced by setting up defaultValue
  to getBlank by default
- use of defaultValue is moved to 'final read point' i.e. getArgsObject
- A number of tests are updated
- Allows us to encapsulate the special 'isBlank' treatment
- Also fix Resource type not actually using 'id'
- Remove un-needed stuff
- Add returnTypes to commands
- Fix console logging command name
- Allow users to see if the command resulted in a promise
This is just a 'stop it crashing' fix:
- Remove pref command. It's too slow
- Update console to work with web console
- 3 tests to check for places when it's right to stop propagation
- Removed default setter call, because the correct value is later used
The event was called assignmentValueChanged to distinguish it from the
assignmentChanged event which is called when the caret moves into a new
assignment.
But Assignments have arguments and values, and we're now bailing out if
the value did not change. so the assignmentValueChanged was confusing.
They now switch between the options. Previously it auto-completed.
This is more key-presses, but more obvious.
JSD gets confused about executable lines with 'case null:'
- types can do more with predictions
- it's more encapsulated
- continues work begin in 9522a83
- Just like all the other types
- Previously we had this basic idea a level up and it was hacky
- We should extend this idea to remove _structuralChangeInProgress
  but that can wait for another day
- Inputter should use an specific cursor position because:
    element.selectionStart = 4;
    console.log(element.selectionStart);
    // could be non-4 until event loop re-joined
  This latter bug only exposed due to an experiment in removing a XUL bug
  workaround
- Tooltip should compare arg.text not value because it deals with text
- Both times we mess with an argument we need to make sure its there
- Also minor doc tweak
- Previously we needed this timeout, but it seems now we dont
- If this sticks we should close bug 676520
- We stopped using meta-bugs for milestones, so this broke
- Now it's a single level thing we can use a table
- Use a view rather than DOM hackery
- importCss can not generate an id from hash(cssText) to prevent
  multiple additions of same cssText
- createView now supports css and cssId for passing to importCss
- This is used to simplify help.js
- We should check whenever we update
- We should update even when output are hidden
- Tests should reflect these changes
- Move to view
- Add 'hidden' option to prevent messing up output
- replace line delimitting with margin delimitting
- Also 2 minor code tidy-ups (unused require and better jsdoc)
- Also remove un-needed require (fields.js)
- And add missing event un-register (basic.js)
- Move 'test' command to test/commands/test.js from test/commands.js
- Document the options passed to a test run
- Handle default options better
- Pass 'display' into tests rather than components individually
- Log errors to 'test' command more verbosely
- Handle failures during setup
- They were not logical, and causing test confusion
Changes along with these added tests:
- Added inputter.setCursor() function to help cursor position testing
- Added requistion.typedEndsWithWhitespace() - See jsdoc comments
- SelectionType._findPredictions skips non-exact matches when the argument
  looks like it's "done".
- blank Booleans are textless, VALID and have predictions
- Separate tabText into directTabText (i.e. what's displayed at the cursor)
  and arrowTabText (i.e. what's displayed at the end of the line)
- Simplify emptyParameter handling
- Log via test-suite rather than via console
- Remove unused reportToText function
- Improve docs
- Include count of checks passed and overall status
- Trim common prefix from suite names
- Error messages display properly
- Minor style updates to HTML output and text output
- Testing demonstrated that they were not being used
- New suite for tooltip testing
- More tests for keyboard usage
- More cli tests
- New command for deeply nested sub commands
- Added logging given new test.log ability
@campd

campd commented Mar 29, 2012

Copy link
Copy Markdown
Owner

r+ for (gclidocs) and (intro)

@campd

campd commented Mar 29, 2012

Copy link
Copy Markdown
Owner

r+ on (default) and (toolbar)

@campd

campd commented Apr 2, 2012

Copy link
Copy Markdown
Owner

r+ (noopts)

@campd

campd commented Apr 2, 2012

Copy link
Copy Markdown
Owner

r+ (fulltab)

@campd

campd commented Apr 2, 2012

Copy link
Copy Markdown
Owner

r+ (ontense) (underscore) (cleanout)

@campd

campd commented Apr 2, 2012

Copy link
Copy Markdown
Owner

r+ (view)

@campd

campd commented Apr 2, 2012

Copy link
Copy Markdown
Owner

r+(moretests)

@joewalker joewalker closed this Apr 12, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants