Home
last modified time | relevance | path

Searched refs:test (Results 1 – 25 of 146) sorted by relevance

123456

/template/twigstarter/vendor/twig/twig/src/
H A DExpressionParser.php696 $class = $this->getTestNodeClass($test);
700 } elseif ($test->hasOneMandatoryArgument()) {
717 if ($test = $this->env->getTest($name)) {
718 return [$name, $test];
721 if ($stream->test(/* Token::NAME_TYPE */ 5)) {
725 if ($test = $this->env->getTest($name)) {
728 return [$name, $test];
740 if ($test->isDeprecated()) {
744 if (!\is_bool($test->getDeprecatedVersion())) {
747 if ($test->getAlternative()) {
[all …]
H A DParser.php62 public function parse(TokenStream $stream, $test = null, $dropNeedle = false) argument
98 $body = $this->subparse($test, $dropNeedle);
129 public function subparse($test, $dropNeedle = false) argument
155 if (null !== $test && $test($token)) {
168 if (null !== $test) {
171 … if (\is_array($test) && isset($test[0]) && $test[0] instanceof TokenParserInterface) {
172 …rintf(' (expecting closing tag for the "%s" tag defined near line %s).', $test[0]->getTag(), $line…
H A DExtensionSet.php344 public function addTest(TwigTest $test) argument
347 …sprintf('Unable to add test "%s" as extensions have already been initialized.', $test->getName()));
350 $this->staging->addTest($test);
378 foreach ($this->tests as $pattern => $test) {
384 $test->setArguments($matches);
386 return $test;
443 foreach ($extension->getTests() as $test) {
444 $this->tests[$test->getName()] = $test;
H A DTokenStream.php63 if ($this->tokens[$this->current]->test($primary, $secondary)) {
74 if (!$token->test($type, $value)) {
105 public function test($primary, $secondary = null): bool function in Twig\\TokenStream
107 return $this->tokens[$this->current]->test($primary, $secondary);
/template/twigstarter/vendor/twig/twig/src/Extension/
H A DStagingExtension.php87 public function addTest(TwigTest $test) argument
89 if (isset($this->tests[$test->getName()])) {
90 … throw new \LogicException(sprintf('Test "%s" is already registered.', $test->getName()));
93 $this->tests[$test->getName()] = $test;
/template/twigstarter/vendor/twig/twig/src/Test/
H A DIntegrationTestCase.php108 $test = file_get_contents($file->getRealpath());
110 …MPLATE(?:\(.*?\))?--(?:.*?))+)\s*(?:--DATA--\s*(.*))?\s*--EXCEPTION--\s*(.*)/sx', $test, $match)) {
117 …N--\s*(.*?))?\s*((?:--TEMPLATE(?:\(.*?\))?--(?:.*?))+)--DATA--.*?--EXPECT--.*/s', $test, $match)) {
123 …'/--DATA--(.*?)(?:--CONFIG--(.*?))?--EXPECT--(.*?)(?=\-\-DATA\-\-|$)/s', $test, $outputs, \PREG_SE…
178 foreach ($this->getTwigTests() as $test) {
179 $twig->addTest($test);
255 protected static function parseTemplates($test) argument
258 …preg_match_all('/--TEMPLATE(?:\((.*?)\))?--(.*?)(?=\-\-TEMPLATE|$)/s', $test, $matches, \PREG_SET_…
/template/twigstarter/vendor/twig/twig/src/Node/Expression/
H A DTestExpression.php32 $test = $compiler->getEnvironment()->getTest($name);
36 $this->setAttribute('arguments', $test->getArguments());
37 $this->setAttribute('callable', $test->getCallable());
38 $this->setAttribute('is_variadic', $test->isVariadic());
H A DNullCoalesceExpression.php25 $test = new DefinedTest(clone $left, 'defined', new Node(), $left->getTemplateLine());
28 $test = new AndBinary(
29 $test,
35 parent::__construct($test, $left, $right, $lineno);
/template/sprintdoc/js/base/
H A Dvelocity.min.js3test(b.nodeName)?{top:0,left:0}:c(b).offset();return d.top-=parseFloat(a.style.marginTop)||0,d.lef…
4test(e)&&!r&&0!==p&&(r=0),i._cacheValues&&n&&n[e]?(r===d&&(r=n[e].endValue+n[e].unitType),m=k.root…
/template/mnml-blog/js/iepngfix/
H A Diepngfix.htc35 src && !(/IMG|INPUT/.test(elm.nodeName) && (t != 2)) &&
75 !/MSIE (5\.5|6)/.test(navigator.userAgent) ||
87 isSrc = /src/.test(evt.propertyName),
88 isBg = /backgroundImage/.test(evt.propertyName),
89 isPos = /width|height|background(Pos|Rep)/.test(evt.propertyName),
112 if ((/\.png/i).test(elm.src)) {
176 if (t && (/relative|absolute/i).test(elm.currentStyle.position)) {
181 if (!(/relative|absolute/i).test(tFix[t].currentStyle.position)) {
/template/prsnl10/js/iepngfix/
H A Diepngfix.htc35 src && !(/IMG|INPUT/.test(elm.nodeName) && (t != 2)) &&
75 !/MSIE (5\.5|6)/.test(navigator.userAgent) ||
87 isSrc = /src/.test(evt.propertyName),
88 isBg = /backgroundImage/.test(evt.propertyName),
89 isPos = /width|height|background(Pos|Rep)/.test(evt.propertyName),
112 if ((/\.png/i).test(elm.src)) {
176 if (t && (/relative|absolute/i).test(elm.currentStyle.position)) {
181 if (!(/relative|absolute/i).test(tFix[t].currentStyle.position)) {
/template/ospyramid/js/libs/
H A Dmodernizr-1.7.min.js2test(f)&&l.style.WebkitAppearance!==c?(g.appendChild(l),h=b.defaultView,e=h.getComputedStyle&&h.ge…
H A Djquery-1.6.1.js889 if ( rnotwhite.test( "\xA0" ) ) {
1238 delete div.test;
2281 rfocusable.test( elem.nodeName ) || rclickable.test( elem.nodeName ) && elem.href ?
3787 Expr.match.ID.test(parts[0]) && !Expr.match.ID.test(parts[parts.length - 1]) ) {
4224 match[2] = (test[1] + (test[2] || 1)) - 0;
4225 match[3] = test[3] - 0;
4270 } else if ( Expr.match.POS.test( match[0] ) || Expr.match.CHILD.test( match[0] ) ) {
4962 div.innerHTML = "<div class='test e'></div><div class='test'></div>";
5349 if ( !runtil.test( name ) ) {
5359 if ( (this.length > 1 || rmultiselector.test( selector )) && rparentsprev.test( name ) ) {
[all …]
/template/quickjump/
H A Djquery-1.4.2.min.js19 …1&&typeof a[0]==="string"&&a[0].length<512&&b===s&&!ta.test(a[0])&&(c.support.checkClone||!ua.test
64 …ecialChange",ea[a]);return da.test(this.nodeName)},teardown:function(){c.event.remove(this,".speci…
78 …g"&&!/\W/.test(h)){var p=h=h.toLowerCase();q=b}q("parentNode",h,m,g,p,l)},"~":function(g,h,l){var …
80test(g[2])&&"0n+"+g[2]||g[2]);g[2]=h[1]+(h[2]||1)-0;g[3]=h[3]-0}g[0]=e++;return g},ATTR:function(g…
81test(g[0])||n.match.CHILD.test(g[0]))return true;return g},POS:function(g){g.unshift(true);return …
96test(i)?c(i,b||this.context):i)}for(;f&&f.ownerDocument&&f!==b;){for(i in j){e=j[i];if(e.jquery?e.…
99 …this,b,d);eb.test(a)||(f=d);if(f&&typeof f==="string")e=c.filter(f,e);e=this.length>1?c.unique(e):…
116 Na.test(a)?a.replace(Na,b):b}return f.filter&&f.filter.indexOf("opacity=")>=0?parseFloat(Oa.exec(f.…
117 …Oa.test(a.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return f===""?"1":f}if(ha.test(…
125 …||!N.test(e.data))e.data=(e.data?e.data+"&":"")+(e.jsonp||"callback")+"=?";e.dataType="json"}if(e.…
[all …]
/template/twigstarter/vendor/twig/twig/doc/
H A Dadvanced.rst305 $twig->addTest($test);
321 $twig->addTest($test);
336 $test = new TwigTest(
340 $twig->addTest($test);
498 * ``test($type)``, ``test($value)`` or ``test($type, $value)``: Determines whether
879 foo.test
880 bar.test
882 foo.test
883 bar.test
885 foo.test
[all …]
/template/twigstarter/vendor/twig/twig/src/TokenParser/
H A DWithTokenParser.php30 if (!$stream->test(/* Token::BLOCK_END_TYPE */ 3)) {
46 return $token->test('endwith');
H A DAutoEscapeTokenParser.php29 if ($stream->test(/* Token::BLOCK_END_TYPE */ 3)) {
48 return $token->test('endautoescape');
H A DIfTokenParser.php75 return $token->test(['elseif', 'else', 'endif']);
80 return $token->test(['endif']);
/template/breeze/bower_components/gumby/js/libs/
H A Djquery-1.10.1.min.js4test(i[1])&&x.isPlainObject(n))for(i in n)x.isFunction(this[i])?this[i](n[i]):this.attr(i,n[i]);re…
5test(r)?x.parseJSON(r):r}catch(o){}x.data(e,n,r)}else r=t}return r}function I(e){var t;for(t in e)…
6test(l)&&Ut.test(n)&&(i=u.width,o=u.minWidth,a=u.maxWidth,u.minWidth=u.maxWidth=u.width=l,l=s.widt…
/template/incognitek/
H A Diepngfix.htc30 if (!/MSIE (5\.5|6\.)/.test(navigator.userAgent) ||
31 (event && !/(background|src)/.test(event.propertyName))) return;
37 if ((/\.png$/i).test(src))
/template/twigstarter/vendor/twig/twig/doc/tags/
H A Dif.rst6 In the simplest form you can use it to test if an expression evaluates to
15 You can also test if an array is not empty:
29 If you want to test if the variable is defined, use ``if users is
/template/twigstarter/vendor/twig/twig/src/Node/Expression/Filter/
H A DDefaultFilter.php37 $test = new DefinedTest(clone $node, 'defined', new Node(), $node->getTemplateLine());
40 $node = new ConditionalExpression($test, $default, $false, $node->getTemplateLine());
/template/strap/bootstrap/4.5.0/
H A Djquery-3.5.1.min.js2test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===p&&(U.test(t)||z.test(t))){…
/template/strap/bootstrap/4.4.1/
H A Djquery-3.4.1.min.js2test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===p&&U.test(t)){(s=e.getAttri…
/template/argon/assets/js/core/
H A Djquery.min.js2test(a))){if(1!==w)s=b,r=a;else if("object"!==b.nodeName.toLowerCase()){(k=b.getAttribute("id"))?k…
3test(a)?JSON.parse(a):a)}function _(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d="data-"+b.repl…
4test(a.nodeName)||ob.test(a.nodeName)&&a.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"…

123456