From eaa8ccaccb1091820d0a8d1223996a6dd057347d Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Sun, 17 Jan 2016 14:28:04 -0600 Subject: Upgrade CodeMirror to 5.10.1 and now support fullscreen, jump-to-line in editor --- public/vendor/codemirror/mode/css/test.js | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) mode change 100755 => 100644 public/vendor/codemirror/mode/css/test.js (limited to 'public/vendor/codemirror/mode/css/test.js') diff --git a/public/vendor/codemirror/mode/css/test.js b/public/vendor/codemirror/mode/css/test.js old mode 100755 new mode 100644 index 55ae676e..7a496fb0 --- a/public/vendor/codemirror/mode/css/test.js +++ b/public/vendor/codemirror/mode/css/test.js @@ -6,7 +6,7 @@ function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); } // Error, because "foobarhello" is neither a known type or property, but - // property was expected (after "and"), and it should be in parenthese. + // property was expected (after "and"), and it should be in parentheses. MT("atMediaUnknownType", "[def @media] [attribute screen] [keyword and] [error foobarhello] { }"); @@ -18,6 +18,12 @@ MT("atMediaMaxWidthNested", "[def @media] [attribute screen] [keyword and] ([property max-width]: [number 25px]) { [tag foo] { } }"); + MT("atMediaFeatureValueKeyword", + "[def @media] ([property orientation]: [keyword landscape]) { }"); + + MT("atMediaUnknownFeatureValueKeyword", + "[def @media] ([property orientation]: [error upsidedown]) { }"); + MT("tagSelector", "[tag foo] { }"); @@ -49,11 +55,17 @@ MT("tagColorHex3", "[tag foo] { [property background]: [atom #fff]; }"); + MT("tagColorHex4", + "[tag foo] { [property background]: [atom #ffff]; }"); + MT("tagColorHex6", "[tag foo] { [property background]: [atom #ffffff]; }"); - MT("tagColorHex4", - "[tag foo] { [property background]: [atom&error #ffff]; }"); + MT("tagColorHex8", + "[tag foo] { [property background]: [atom #ffffffff]; }"); + + MT("tagColorHex5Invalid", + "[tag foo] { [property background]: [atom&error #fffff]; }"); MT("tagColorHexInvalid", "[tag foo] { [property background]: [atom&error #ffg]; }"); @@ -114,7 +126,7 @@ "}"); MT("empty_url", - "[def @import] [tag url]() [tag screen];"); + "[def @import] [atom url]() [attribute screen];"); MT("parens", "[qualifier .foo] {", @@ -150,7 +162,7 @@ " [tag foo] {", " [property font-family]: [variable Verdana], [atom sans-serif];", " }", - " }"); + "}"); MT("document_url", "[def @document] [tag url]([string http://blah]) { [qualifier .class] { } }"); -- cgit v1.2.3