Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions Magento2/Tests/Less/TypeSelectorsUnitTest.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// /**
// * Copyright © Magento, Inc. All rights reserved.
// * See COPYING.txt for license details.
// */

.error {
some: 'stuff';
}

/**
* Should throw an error, Will be implemented in MAGETWO-49778
*/
div.error {
anything: 'else';
}

.nav > LI {
#bar .baz();
}

.nav > ul {
foo: 'bar';
}
27 changes: 27 additions & 0 deletions Magento2/Tests/Less/TypeSelectorsUnitTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php
/**
* Copyright © Magento. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento2\Tests\Less;

class TypeSelectorsUnitTest extends AbstractLessSniffUnitTestCase
{
/**
* @inheritdoc
*/
public function getErrorList()
{
return [
17 => 1,
];
}

/**
* @inheritdoc
*/
public function getWarningList()
{
return [];
}
}