Issue #1540072 by xjm: American spelling for behavior

8.0.x
Jennifer Hodgdon 2012-04-20 12:51:35 -07:00
parent 6251c4066e
commit 121f7ee093
6 changed files with 8 additions and 8 deletions

View File

@ -3361,7 +3361,7 @@ function form_process_tableselect($element) {
$value = is_array($element['#value']) ? $element['#value'] : array(); $value = is_array($element['#value']) ? $element['#value'] : array();
} }
else { else {
// Advanced selection behaviour make no sense for radios. // Advanced selection behavior makes no sense for radios.
$element['#js_select'] = FALSE; $element['#js_select'] = FALSE;
} }

View File

@ -59,7 +59,7 @@ use ArrayAccess;
* means that assigning an offset via arrayAccess will only apply while the * means that assigning an offset via arrayAccess will only apply while the
* object is in scope and will not be written back to the persistent cache. * object is in scope and will not be written back to the persistent cache.
* This follows a similar pattern to static vs. persistent caching in * This follows a similar pattern to static vs. persistent caching in
* procedural code. Extending classes may wish to alter this behaviour, for * procedural code. Extending classes may wish to alter this behavior, for
* example by overriding offsetSet() and adding an automatic call to persist(). * example by overriding offsetSet() and adding an automatic call to persist().
* *
* @see SchemaCache * @see SchemaCache

View File

@ -1111,7 +1111,7 @@ function filter_dom_serialize_escape_cdata_element($dom_document, $dom_element,
$embed_suffix = "\n{$comment_start}--><!]]>{$comment_end}\n"; $embed_suffix = "\n{$comment_start}--><!]]>{$comment_end}\n";
// Prevent invalid cdata escaping as this would throw a DOM error. // Prevent invalid cdata escaping as this would throw a DOM error.
// This is the same behaviour as found in libxml2. // This is the same behavior as found in libxml2.
// Related W3C standard: http://www.w3.org/TR/REC-xml/#dt-cdsection // Related W3C standard: http://www.w3.org/TR/REC-xml/#dt-cdsection
// Fix explanation: http://en.wikipedia.org/wiki/CDATA#Nesting // Fix explanation: http://en.wikipedia.org/wiki/CDATA#Nesting
$data = str_replace(']]>', ']]]]><![CDATA[>', $node->data); $data = str_replace(']]>', ']]]]><![CDATA[>', $node->data);

View File

@ -3094,7 +3094,7 @@ function node_access($op, $node, $account = NULL) {
return $result; return $result;
} }
elseif (is_object($node) && $op == 'view' && $node->status) { elseif (is_object($node) && $op == 'view' && $node->status) {
// If no modules implement hook_node_grants(), the default behaviour is to // If no modules implement hook_node_grants(), the default behavior is to
// allow all users to view published nodes, so reflect that here. // allow all users to view published nodes, so reflect that here.
$rights[$account->uid][$cid][$op] = TRUE; $rights[$account->uid][$cid][$op] = TRUE;
return TRUE; return TRUE;

View File

@ -813,12 +813,12 @@ class FormsElementsLabelsTestCase extends DrupalWebTestCase {
$this->assertTrue(isset($elements[0]), t("Label 0 found radios.")); $this->assertTrue(isset($elements[0]), t("Label 0 found radios."));
// Exercise various defaults for checkboxes and modifications to ensure // Exercise various defaults for checkboxes and modifications to ensure
// appropriate override and correct behaviour. // appropriate override and correct behavior.
$elements = $this->xpath('//input[@id="edit-form-checkbox-test"]/following-sibling::label[@for="edit-form-checkbox-test" and @class="option"]'); $elements = $this->xpath('//input[@id="edit-form-checkbox-test"]/following-sibling::label[@for="edit-form-checkbox-test" and @class="option"]');
$this->assertTrue(isset($elements[0]), t("Label follows field and label option class correct for a checkbox by default.")); $this->assertTrue(isset($elements[0]), t("Label follows field and label option class correct for a checkbox by default."));
// Exercise various defaults for textboxes and modifications to ensure // Exercise various defaults for textboxes and modifications to ensure
// appropriate override and correct behaviour. // appropriate override and correct behavior.
$elements = $this->xpath('//label[@for="edit-form-textfield-test-title-and-required"]/child::abbr[@class="form-required"]/parent::*/following-sibling::input[@id="edit-form-textfield-test-title-and-required"]'); $elements = $this->xpath('//label[@for="edit-form-textfield-test-title-and-required"]/child::abbr[@class="form-required"]/parent::*/following-sibling::input[@id="edit-form-textfield-test-title-and-required"]');
$this->assertTrue(isset($elements[0]), t("Label precedes textfield, with required marker inside label.")); $this->assertTrue(isset($elements[0]), t("Label precedes textfield, with required marker inside label."));

View File

@ -1670,7 +1670,7 @@ class UserBlocksUnitTests extends DrupalWebTestCase {
} }
/** /**
* Test case to test user_save() behaviour. * Tests user_save() behavior.
*/ */
class UserSaveTestCase extends DrupalWebTestCase { class UserSaveTestCase extends DrupalWebTestCase {
@ -1759,7 +1759,7 @@ class UserCreateTestCase extends DrupalWebTestCase {
} }
/** /**
* Test case to test user_save() behaviour. * Tests the user edit form.
*/ */
class UserEditTestCase extends DrupalWebTestCase { class UserEditTestCase extends DrupalWebTestCase {