File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed
dev/tests/static/testsuite/Magento/Test/Legacy Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -41,22 +41,16 @@ public function testObsoleteJavascriptAttributeType()
41
41
$ invoker = new \Magento \Framework \Test \Utility \AggregateInvoker ($ this );
42
42
$ invoker (
43
43
/**
44
- * Test usage of protected and private methods and variables in template
45
- *
46
- * According to naming convention (B5.8, B6.2) all class members
47
- * in protected or private scope should be prefixed with underscore.
48
- * Member variables declared "public" should never start with an underscore.
49
- * Access to protected and private members of Block class is obsolete in phtml templates
50
- * since introduction of multiple template engines support
44
+ * "text/javascript" type attribute in not obligatory to use in templates due to HTML5 standards.
45
+ * For more details please go to "http://www.w3.org/TR/html5/scripting-1.html".
51
46
*
52
47
* @param string $file
53
48
*/
54
49
function ($ file ) {
55
50
$ this ->assertNotRegexp (
56
51
'/type="text\/javascript"/ ' ,
57
52
file_get_contents ($ file ),
58
- 'Please do not use "text/javascript" type attribute due to HTML5 standards. ' .
59
- ' For more details please go to "http://www.w3.org/TR/html5/scripting-1.html". '
53
+ 'Please do not use "text/javascript" type attribute. '
60
54
);
61
55
},
62
56
\Magento \Framework \Test \Utility \Files::init ()->getPhtmlFiles ()
You can’t perform that action at this time.
0 commit comments