Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/wp-file-.../lib/codemirr.../mode/css
File: test.js
// CodeMirror, copyright (c) by Marijn Haverbeke and others
[0] Fix | Delete
// Distributed under an MIT license: http://codemirror.net/LICENSE
[1] Fix | Delete
[2] Fix | Delete
(function() {
[3] Fix | Delete
var mode = CodeMirror.getMode({indentUnit: 2}, "css");
[4] Fix | Delete
function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }
[5] Fix | Delete
[6] Fix | Delete
// Error, because "foobarhello" is neither a known type or property, but
[7] Fix | Delete
// property was expected (after "and"), and it should be in parentheses.
[8] Fix | Delete
MT("atMediaUnknownType",
[9] Fix | Delete
"[def @media] [attribute screen] [keyword and] [error foobarhello] { }");
[10] Fix | Delete
[11] Fix | Delete
// Soft error, because "foobarhello" is not a known property or type.
[12] Fix | Delete
MT("atMediaUnknownProperty",
[13] Fix | Delete
"[def @media] [attribute screen] [keyword and] ([error foobarhello]) { }");
[14] Fix | Delete
[15] Fix | Delete
// Make sure nesting works with media queries
[16] Fix | Delete
MT("atMediaMaxWidthNested",
[17] Fix | Delete
"[def @media] [attribute screen] [keyword and] ([property max-width]: [number 25px]) { [tag foo] { } }");
[18] Fix | Delete
[19] Fix | Delete
MT("atMediaFeatureValueKeyword",
[20] Fix | Delete
"[def @media] ([property orientation]: [keyword landscape]) { }");
[21] Fix | Delete
[22] Fix | Delete
MT("atMediaUnknownFeatureValueKeyword",
[23] Fix | Delete
"[def @media] ([property orientation]: [error upsidedown]) { }");
[24] Fix | Delete
[25] Fix | Delete
MT("tagSelector",
[26] Fix | Delete
"[tag foo] { }");
[27] Fix | Delete
[28] Fix | Delete
MT("classSelector",
[29] Fix | Delete
"[qualifier .foo-bar_hello] { }");
[30] Fix | Delete
[31] Fix | Delete
MT("idSelector",
[32] Fix | Delete
"[builtin #foo] { [error #foo] }");
[33] Fix | Delete
[34] Fix | Delete
MT("tagSelectorUnclosed",
[35] Fix | Delete
"[tag foo] { [property margin]: [number 0] } [tag bar] { }");
[36] Fix | Delete
[37] Fix | Delete
MT("tagStringNoQuotes",
[38] Fix | Delete
"[tag foo] { [property font-family]: [variable hello] [variable world]; }");
[39] Fix | Delete
[40] Fix | Delete
MT("tagStringDouble",
[41] Fix | Delete
"[tag foo] { [property font-family]: [string \"hello world\"]; }");
[42] Fix | Delete
[43] Fix | Delete
MT("tagStringSingle",
[44] Fix | Delete
"[tag foo] { [property font-family]: [string 'hello world']; }");
[45] Fix | Delete
[46] Fix | Delete
MT("tagColorKeyword",
[47] Fix | Delete
"[tag foo] {",
[48] Fix | Delete
" [property color]: [keyword black];",
[49] Fix | Delete
" [property color]: [keyword navy];",
[50] Fix | Delete
" [property color]: [keyword yellow];",
[51] Fix | Delete
"}");
[52] Fix | Delete
[53] Fix | Delete
MT("tagColorHex3",
[54] Fix | Delete
"[tag foo] { [property background]: [atom #fff]; }");
[55] Fix | Delete
[56] Fix | Delete
MT("tagColorHex4",
[57] Fix | Delete
"[tag foo] { [property background]: [atom #ffff]; }");
[58] Fix | Delete
[59] Fix | Delete
MT("tagColorHex6",
[60] Fix | Delete
"[tag foo] { [property background]: [atom #ffffff]; }");
[61] Fix | Delete
[62] Fix | Delete
MT("tagColorHex8",
[63] Fix | Delete
"[tag foo] { [property background]: [atom #ffffffff]; }");
[64] Fix | Delete
[65] Fix | Delete
MT("tagColorHex5Invalid",
[66] Fix | Delete
"[tag foo] { [property background]: [atom&error #fffff]; }");
[67] Fix | Delete
[68] Fix | Delete
MT("tagColorHexInvalid",
[69] Fix | Delete
"[tag foo] { [property background]: [atom&error #ffg]; }");
[70] Fix | Delete
[71] Fix | Delete
MT("tagNegativeNumber",
[72] Fix | Delete
"[tag foo] { [property margin]: [number -5px]; }");
[73] Fix | Delete
[74] Fix | Delete
MT("tagPositiveNumber",
[75] Fix | Delete
"[tag foo] { [property padding]: [number 5px]; }");
[76] Fix | Delete
[77] Fix | Delete
MT("tagVendor",
[78] Fix | Delete
"[tag foo] { [meta -foo-][property box-sizing]: [meta -foo-][atom border-box]; }");
[79] Fix | Delete
[80] Fix | Delete
MT("tagBogusProperty",
[81] Fix | Delete
"[tag foo] { [property&error barhelloworld]: [number 0]; }");
[82] Fix | Delete
[83] Fix | Delete
MT("tagTwoProperties",
[84] Fix | Delete
"[tag foo] { [property margin]: [number 0]; [property padding]: [number 0]; }");
[85] Fix | Delete
[86] Fix | Delete
MT("tagTwoPropertiesURL",
[87] Fix | Delete
"[tag foo] { [property background]: [atom url]([string //example.com/foo.png]); [property padding]: [number 0]; }");
[88] Fix | Delete
[89] Fix | Delete
MT("indent_tagSelector",
[90] Fix | Delete
"[tag strong], [tag em] {",
[91] Fix | Delete
" [property background]: [atom rgba](",
[92] Fix | Delete
" [number 255], [number 255], [number 0], [number .2]",
[93] Fix | Delete
" );",
[94] Fix | Delete
"}");
[95] Fix | Delete
[96] Fix | Delete
MT("indent_atMedia",
[97] Fix | Delete
"[def @media] {",
[98] Fix | Delete
" [tag foo] {",
[99] Fix | Delete
" [property color]:",
[100] Fix | Delete
" [keyword yellow];",
[101] Fix | Delete
" }",
[102] Fix | Delete
"}");
[103] Fix | Delete
[104] Fix | Delete
MT("indent_comma",
[105] Fix | Delete
"[tag foo] {",
[106] Fix | Delete
" [property font-family]: [variable verdana],",
[107] Fix | Delete
" [atom sans-serif];",
[108] Fix | Delete
"}");
[109] Fix | Delete
[110] Fix | Delete
MT("indent_parentheses",
[111] Fix | Delete
"[tag foo]:[variable-3 before] {",
[112] Fix | Delete
" [property background]: [atom url](",
[113] Fix | Delete
"[string blahblah]",
[114] Fix | Delete
"[string etc]",
[115] Fix | Delete
"[string ]) [keyword !important];",
[116] Fix | Delete
"}");
[117] Fix | Delete
[118] Fix | Delete
MT("font_face",
[119] Fix | Delete
"[def @font-face] {",
[120] Fix | Delete
" [property font-family]: [string 'myfont'];",
[121] Fix | Delete
" [error nonsense]: [string 'abc'];",
[122] Fix | Delete
" [property src]: [atom url]([string http://blah]),",
[123] Fix | Delete
" [atom url]([string http://foo]);",
[124] Fix | Delete
"}");
[125] Fix | Delete
[126] Fix | Delete
MT("empty_url",
[127] Fix | Delete
"[def @import] [atom url]() [attribute screen];");
[128] Fix | Delete
[129] Fix | Delete
MT("parens",
[130] Fix | Delete
"[qualifier .foo] {",
[131] Fix | Delete
" [property background-image]: [variable fade]([atom #000], [number 20%]);",
[132] Fix | Delete
" [property border-image]: [atom linear-gradient](",
[133] Fix | Delete
" [atom to] [atom bottom],",
[134] Fix | Delete
" [variable fade]([atom #000], [number 20%]) [number 0%],",
[135] Fix | Delete
" [variable fade]([atom #000], [number 20%]) [number 100%]",
[136] Fix | Delete
" );",
[137] Fix | Delete
"}");
[138] Fix | Delete
[139] Fix | Delete
MT("css_variable",
[140] Fix | Delete
":[variable-3 root] {",
[141] Fix | Delete
" [variable-2 --main-color]: [atom #06c];",
[142] Fix | Delete
"}",
[143] Fix | Delete
"[tag h1][builtin #foo] {",
[144] Fix | Delete
" [property color]: [atom var]([variable-2 --main-color]);",
[145] Fix | Delete
"}");
[146] Fix | Delete
[147] Fix | Delete
MT("supports",
[148] Fix | Delete
"[def @supports] ([keyword not] (([property text-align-last]: [atom justify]) [keyword or] ([meta -moz-][property text-align-last]: [atom justify])) {",
[149] Fix | Delete
" [property text-align-last]: [atom justify];",
[150] Fix | Delete
"}");
[151] Fix | Delete
[152] Fix | Delete
MT("document",
[153] Fix | Delete
"[def @document] [tag url]([string http://blah]),",
[154] Fix | Delete
" [tag url-prefix]([string https://]),",
[155] Fix | Delete
" [tag domain]([string blah.com]),",
[156] Fix | Delete
" [tag regexp]([string \".*blah.+\"]) {",
[157] Fix | Delete
" [builtin #id] {",
[158] Fix | Delete
" [property background-color]: [keyword white];",
[159] Fix | Delete
" }",
[160] Fix | Delete
" [tag foo] {",
[161] Fix | Delete
" [property font-family]: [variable Verdana], [atom sans-serif];",
[162] Fix | Delete
" }",
[163] Fix | Delete
"}");
[164] Fix | Delete
[165] Fix | Delete
MT("document_url",
[166] Fix | Delete
"[def @document] [tag url]([string http://blah]) { [qualifier .class] { } }");
[167] Fix | Delete
[168] Fix | Delete
MT("document_urlPrefix",
[169] Fix | Delete
"[def @document] [tag url-prefix]([string https://]) { [builtin #id] { } }");
[170] Fix | Delete
[171] Fix | Delete
MT("document_domain",
[172] Fix | Delete
"[def @document] [tag domain]([string blah.com]) { [tag foo] { } }");
[173] Fix | Delete
[174] Fix | Delete
MT("document_regexp",
[175] Fix | Delete
"[def @document] [tag regexp]([string \".*blah.+\"]) { [builtin #id] { } }");
[176] Fix | Delete
[177] Fix | Delete
MT("counter-style",
[178] Fix | Delete
"[def @counter-style] [variable binary] {",
[179] Fix | Delete
" [property system]: [atom numeric];",
[180] Fix | Delete
" [property symbols]: [number 0] [number 1];",
[181] Fix | Delete
" [property suffix]: [string \".\"];",
[182] Fix | Delete
" [property range]: [atom infinite];",
[183] Fix | Delete
" [property speak-as]: [atom numeric];",
[184] Fix | Delete
"}");
[185] Fix | Delete
[186] Fix | Delete
MT("counter-style-additive-symbols",
[187] Fix | Delete
"[def @counter-style] [variable simple-roman] {",
[188] Fix | Delete
" [property system]: [atom additive];",
[189] Fix | Delete
" [property additive-symbols]: [number 10] [variable X], [number 5] [variable V], [number 1] [variable I];",
[190] Fix | Delete
" [property range]: [number 1] [number 49];",
[191] Fix | Delete
"}");
[192] Fix | Delete
[193] Fix | Delete
MT("counter-style-use",
[194] Fix | Delete
"[tag ol][qualifier .roman] { [property list-style]: [variable simple-roman]; }");
[195] Fix | Delete
[196] Fix | Delete
MT("counter-style-symbols",
[197] Fix | Delete
"[tag ol] { [property list-style]: [atom symbols]([atom cyclic] [string \"*\"] [string \"\\2020\"] [string \"\\2021\"] [string \"\\A7\"]); }");
[198] Fix | Delete
})();
[199] Fix | Delete
[200] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function