Made relevant JS tests transpile to C ; [src/Layout.c]: print_css_node_rec(): print alignContent ; [src/Layout-test-utils.c]: add_failed_test(): Sets failed_test->next to NULL, otherwise the test crashes if there's one and only one failure ; Added type casts so that it can be compiled as C++ by MSVC on Windows ; [Makefile]: Added c_test_msvc target when running in Windows so that the test executable can be built and debugged with Visual Studio on Windows ;
This commit is contained in:
@@ -20,6 +20,8 @@ global.layoutTestUtils = {
|
||||
testLayout: function(node, expectedLayout) {
|
||||
allTests.push({name: currentTest, node: node, expectedLayout: expectedLayout});
|
||||
},
|
||||
testLayoutAgainstDomOnly: function(node) {
|
||||
},
|
||||
testRandomLayout: function(node, i) {
|
||||
allTests.push({name: 'Random #' + i, node: node, expectedLayout: computeDOMLayout(node)});
|
||||
},
|
||||
@@ -31,7 +33,8 @@ global.layoutTestUtils = {
|
||||
};
|
||||
|
||||
global.describe = function(name, cb) {
|
||||
if (name === 'Layout') {
|
||||
if (name === 'Layout' ||
|
||||
name === 'Layout alignContent') {
|
||||
cb();
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user