[Trivialfix]Fix typos in ranger

Fix all the typos found in ranger.

Change-Id: I3a20805ed62d80b83057a08456551f1d7c667fbf
This commit is contained in:
shangxiaobj 2017-08-15 18:52:53 -07:00
parent eb87b2bff6
commit 381b887a33
6 changed files with 12 additions and 12 deletions

View File

@ -2338,7 +2338,7 @@ jQuery.fn.extend({
classNames = value.split( rspace ); classNames = value.split( rspace );
while ( (className = classNames[ i++ ]) ) { while ( (className = classNames[ i++ ]) ) {
// check each className given, space seperated list // check each className given, space separated list
state = isBool ? state : !self.hasClass( className ); state = isBool ? state : !self.hasClass( className );
self[ state ? "addClass" : "removeClass" ]( className ); self[ state ? "addClass" : "removeClass" ]( className );
} }
@ -3956,7 +3956,7 @@ var chunker = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[
rNonWord = /\W/; rNonWord = /\W/;
// Here we check if the JavaScript engine is using some sort of // Here we check if the JavaScript engine is using some sort of
// optimization where it does not always call our comparision // optimization where it does not always call our comparison
// function. If that is the case, discard the hasDuplicate value. // function. If that is the case, discard the hasDuplicate value.
// Thus far that includes Google Chrome. // Thus far that includes Google Chrome.
[0, 0].sort(function() { [0, 0].sort(function() {
@ -8249,7 +8249,7 @@ if ( jQuery.support.ajax ) {
xml; xml;
// Firefox throws exceptions when accessing properties // Firefox throws exceptions when accessing properties
// of an xhr when a network error occured // of an xhr when a network error occurred
// http://helpful.knobs-dials.com/index.php/Component_returned_failure_code:_0x80040111_(NS_ERROR_NOT_AVAILABLE) // http://helpful.knobs-dials.com/index.php/Component_returned_failure_code:_0x80040111_(NS_ERROR_NOT_AVAILABLE)
try { try {

View File

@ -496,7 +496,7 @@ definitions:
example: /v1/images/b2173dd3-7ad6-4362-baa6-a68bce3565cb/file example: /v1/images/b2173dd3-7ad6-4362-baa6-a68bce3565cb/file
visibility: visibility:
type: string type: string
description: if image visable description: if image visible
example: private example: private
disk-format: disk-format:
type: string type: string

View File

@ -2338,7 +2338,7 @@ jQuery.fn.extend({
classNames = value.split( rspace ); classNames = value.split( rspace );
while ( (className = classNames[ i++ ]) ) { while ( (className = classNames[ i++ ]) ) {
// check each className given, space seperated list // check each className given, space separated list
state = isBool ? state : !self.hasClass( className ); state = isBool ? state : !self.hasClass( className );
self[ state ? "addClass" : "removeClass" ]( className ); self[ state ? "addClass" : "removeClass" ]( className );
} }
@ -3956,7 +3956,7 @@ var chunker = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[
rNonWord = /\W/; rNonWord = /\W/;
// Here we check if the JavaScript engine is using some sort of // Here we check if the JavaScript engine is using some sort of
// optimization where it does not always call our comparision // optimization where it does not always call our comparison
// function. If that is the case, discard the hasDuplicate value. // function. If that is the case, discard the hasDuplicate value.
// Thus far that includes Google Chrome. // Thus far that includes Google Chrome.
[0, 0].sort(function() { [0, 0].sort(function() {
@ -8249,7 +8249,7 @@ if ( jQuery.support.ajax ) {
xml; xml;
// Firefox throws exceptions when accessing properties // Firefox throws exceptions when accessing properties
// of an xhr when a network error occured // of an xhr when a network error occurred
// http://helpful.knobs-dials.com/index.php/Component_returned_failure_code:_0x80040111_(NS_ERROR_NOT_AVAILABLE) // http://helpful.knobs-dials.com/index.php/Component_returned_failure_code:_0x80040111_(NS_ERROR_NOT_AVAILABLE)
try { try {

View File

@ -2338,7 +2338,7 @@ jQuery.fn.extend({
classNames = value.split( rspace ); classNames = value.split( rspace );
while ( (className = classNames[ i++ ]) ) { while ( (className = classNames[ i++ ]) ) {
// check each className given, space seperated list // check each className given, space separated list
state = isBool ? state : !self.hasClass( className ); state = isBool ? state : !self.hasClass( className );
self[ state ? "addClass" : "removeClass" ]( className ); self[ state ? "addClass" : "removeClass" ]( className );
} }
@ -3956,7 +3956,7 @@ var chunker = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[
rNonWord = /\W/; rNonWord = /\W/;
// Here we check if the JavaScript engine is using some sort of // Here we check if the JavaScript engine is using some sort of
// optimization where it does not always call our comparision // optimization where it does not always call our comparison
// function. If that is the case, discard the hasDuplicate value. // function. If that is the case, discard the hasDuplicate value.
// Thus far that includes Google Chrome. // Thus far that includes Google Chrome.
[0, 0].sort(function() { [0, 0].sort(function() {
@ -8249,7 +8249,7 @@ if ( jQuery.support.ajax ) {
xml; xml;
// Firefox throws exceptions when accessing properties // Firefox throws exceptions when accessing properties
// of an xhr when a network error occured // of an xhr when a network error occurred
// http://helpful.knobs-dials.com/index.php/Component_returned_failure_code:_0x80040111_(NS_ERROR_NOT_AVAILABLE) // http://helpful.knobs-dials.com/index.php/Component_returned_failure_code:_0x80040111_(NS_ERROR_NOT_AVAILABLE)
try { try {

View File

@ -29,7 +29,7 @@ def get_users_quotas(data, region):
def creat_final_yaml(title, description, resources, outputs): def creat_final_yaml(title, description, resources, outputs):
"""put all yaml strings together. """put all yaml strings together.
:param title: ther version of yaml :param title: the version of yaml
:param description: file description :param description: file description
:param resources: body of the yaml file :param resources: body of the yaml file
:param outputs: the output of the yaml :param outputs: the output of the yaml

View File

@ -63,7 +63,7 @@ class TestCreateResource(FunctionalTest):
@patch.object(root.ResourceService, 'main', @patch.object(root.ResourceService, 'main',
side_effect=root.ConflictValue("region")) side_effect=root.ConflictValue("region"))
def test_delete_resource_flavor_con(self, input): def test_delete_resource_flavor_con(self, input):
"""test delete flavor while previous proccess still in progress.""" """test delete flavor while previous process still in progress."""
try: try:
response = self.app.delete_json('/v1/rds/resources', flavor_data) response = self.app.delete_json('/v1/rds/resources', flavor_data)
except Exception as e: except Exception as e: