-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #175 from mrigsby/lockedDataProps
Locked data props
- Loading branch information
Showing
8 changed files
with
377 additions
and
159 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
test-harness/wires/test/should_not_throw_exception_on_locked_data_property_empty_array.cfm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<cfoutput> | ||
<div> | ||
<h1>Should Not Throw Exception</h1> | ||
<p>When a locked property is an empty array the wire should ignore continue.</p> | ||
<p>Locked Property Value: #lockedPropertyKey#</p> | ||
</div> | ||
</cfoutput> | ||
|
||
<cfscript> | ||
// @startWire | ||
data = { | ||
"lockedPropertyKey": "I AM NOT LOCKED!" | ||
}; | ||
locked = []; | ||
// @endWire | ||
</cfscript> |
18 changes: 18 additions & 0 deletions
18
test-harness/wires/test/should_not_throw_exception_on_locked_data_property_empty_string.cfm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<cfoutput> | ||
<div> | ||
<h1>Should Not Throw Exception</h1> | ||
<p>When a locked property is an empty string the wire should ignore continue.</p> | ||
<p>Locked Property Value: #lockedPropertyKey#</p> | ||
</div> | ||
</cfoutput> | ||
|
||
<cfscript> | ||
// @startWire | ||
data = { | ||
"lockedPropertyKey": "I AM NOT LOCKED!" | ||
}; | ||
locked = ""; | ||
// @endWire | ||
</cfscript> |
18 changes: 18 additions & 0 deletions
18
test-harness/wires/test/should_not_throw_exception_on_locked_data_property_other.cfm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<cfoutput> | ||
<div> | ||
<h1>Should Not Throw Exception</h1> | ||
<p>When a locked property is a data type other than an array, string/list the wire should ignore continue.</p> | ||
<p>Locked Property Value: #lockedPropertyKey#</p> | ||
</div> | ||
</cfoutput> | ||
|
||
<cfscript> | ||
// @startWire | ||
data = { | ||
"lockedPropertyKey": "I AM NOT LOCKED!" | ||
}; | ||
locked = { "lockedPropertyKey" : "someValue" }; | ||
// @endWire | ||
</cfscript> |
17 changes: 17 additions & 0 deletions
17
test-harness/wires/test/should_throw_exception_on_locked_data_property_array.cfm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<cfoutput> | ||
<div> | ||
<h1>Should Throw Exception on Locked Property</h1> | ||
<p>When a property is locked with an array, it should throw an exception when trying to set any of the keys in the array.</p> | ||
</div> | ||
</cfoutput> | ||
|
||
<cfscript> | ||
// @startWire | ||
data = { | ||
"lockedPropertyKey": "I AM LOCKED!" | ||
}; | ||
locked = ["lockedPropertyKey"]; | ||
// @endWire | ||
</cfscript> |
19 changes: 19 additions & 0 deletions
19
test-harness/wires/test/should_throw_exception_on_locked_data_property_list.cfm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<cfoutput> | ||
<div> | ||
<h1>Should Throw Exception on Locked Property</h1> | ||
<p>When a property is locked with an list, it should throw an exception when trying to set any of the keys in the list.</p> | ||
</div> | ||
</cfoutput> | ||
|
||
<cfscript> | ||
// @startWire | ||
data = { | ||
"lockedPropertyKey": "I AM LOCKED!", | ||
"lockedPropertyKeyTwo": "I AM ALSO LOCKED!", | ||
"lockedPropertyKeyThree": "I AM LOCKED AS WELL!" | ||
}; | ||
locked = "lockedPropertyKeyThree,lockedPropertyKey"; | ||
// @endWire | ||
</cfscript> |
Oops, something went wrong.