Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit 4d3a720

Browse files
committed
Merge pull request #4834 from adobe/irichter/add-cssregion-properties
add testcase for flow-from and flow-into css region properties
2 parents b4b5bcb + f6746f6 commit 4d3a720

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

src/extensions/default/CSSCodeHints/unittests.js

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,9 @@ define(function (require, exports, module) {
446446
" region-break-before: \n;" + // line 6
447447
" -ms-region\n;" + // line 7
448448
" -webkit-region\n;" + // line 8
449-
"}\n"; // line 9
449+
" flow-from: \n;" + // line 9
450+
" flow-into: \n;" + // line 10
451+
"}\n"; // line 11
450452

451453
beforeEach(function () {
452454
// create dummy Document for the Editor
@@ -514,6 +516,20 @@ define(function (require, exports, module) {
514516
verifyAttrHints(hintList, "region-break-after"); // first hint should be region-break-after
515517
verifyAllValues(hintList, ["region-break-after", "region-break-before", "region-break-inside", "region-fragment"]);
516518
});
519+
520+
it("should list 2 value-name hints for flow-from", function () {
521+
testEditor.setCursorPos({ line: 9, ch: 12 }); // after flow-from
522+
var hintList = expectHints(CSSCodeHints.cssPropHintProvider);
523+
verifyAttrHints(hintList, "inherit"); // first hint should be inherit
524+
verifyAllValues(hintList, ["inherit", "none"]);
525+
});
526+
527+
it("should list 1 value-name hint for flow-into", function () {
528+
testEditor.setCursorPos({ line: 10, ch: 12 }); // after flow-into
529+
var hintList = expectHints(CSSCodeHints.cssPropHintProvider);
530+
verifyAttrHints(hintList, "none"); // first hint should be none
531+
verifyAllValues(hintList, ["none"]);
532+
});
517533
});
518534
});
519535
});

0 commit comments

Comments
 (0)