Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit d181726

Browse files
test(ngList): add protractor test to example
1 parent 8d18d20 commit d181726

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/ng/directive/input.js

+8
Original file line numberDiff line numberDiff line change
@@ -2413,6 +2413,14 @@ var minlengthDirective = function() {
24132413
* <textarea ng-model="list" ng-list="&#10;" ng-trim="false"></textarea>
24142414
* <pre>{{ list | json }}</pre>
24152415
* </file>
2416+
* <file name="protractor.js" type="protractor">
2417+
* it("should split the text by newlines", function() {
2418+
* var listInput = element(by.model('list'));
2419+
* var output = element(by.binding('{{ list | json }}'));
2420+
* listInput.sendKeys('abc\ndef\nghi');
2421+
* expect(output.getText()).toContain('[\n "abc",\n "def",\n "ghi"\n]');
2422+
* });
2423+
* </file>
24162424
* </example>
24172425
*
24182426
* @element input

0 commit comments

Comments
 (0)