summaryrefslogtreecommitdiffstats
path: root/tools/layoutlib/bridge/tests/res/testApp/MyApplication/golden
Commit message (Collapse)AuthorAgeFilesLines
* Revert to using AppTheme for LayoutLib tests.Deepanshu Gupta2015-08-031-0/+0
| | | | | | | | | | Use AppTheme for all tests other than testExpand. AppTheme contains an attribute needed by testArrayCheck. Also, since the AppTheme extends Theme.Material.Light.DarkActionBar, other tests should be unaffected. Also, update the golden image for the testArrayCheck. Change-Id: Ib5f53f3b029c5aceef2b622e5ac63952d6b1972a
* Update test image for upated nav icons.Deepanshu Gupta2015-07-311-0/+0
| | | | | | | | | | The image shows the nav icons to be separated by a significant distance. This is because the switch to wide-screen layout happens based on shortest width. The layout has a small shortest width and hence it uses the phone layout for a horizontal nav bar and it doesn't look nice. Real devices will never have this config, so it's okay. Change-Id: Ic494ee7fdfb1116db39bcab6d6ee7a1e514b23df
* resolved conflicts for merge of 112d8a36 to mnc-devDiego Perez2015-07-212-0/+0
|\ | | | | | | Change-Id: Ic9511a57db8a96f54dba0704800789a8602b9dd2
| * Render to measured size when using expand modeDiego Perez2015-06-022-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | When using RenderingMode.V_SCROLL or RenderingMode.H_SCROLL, if the screen size is smaller than the measured size but as large as the desired size, the layout will render incorrectly and won't expand. This changes that to expand to at least the size of the screen. Added tests for the V_SCROLL and H_SCROLL modes. Bug: http://b.android.com/174928 Change-Id: I22686903560775e2e4f362af1d7b50c9b985467d
* | LayoutLib: Support getting resource arrays.Deepanshu Gupta2015-05-261-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Don't crash when Resources.get<Type>Array() is called. - If the IDE supports it, actually return the value. - Add tests for getArray. - Update test app to latest gradle plugin version. - Switch to using AppTheme for tests, since the tests depend on some custom theme attributes. The AppTheme now inherits from Material.Light.DarkActionBar, so other tests should be unaffected. Depends on a newer version of sdk-common, which fixes the parsing of array resource in value files. Bug: 12372031 Change-Id: I313b61511e98ac1402d75056ebfdeeb005ebb96d
* | Update nav bar icons.Deepanshu Gupta2015-05-131-0/+0
| | | | | | | | | | | | | | | | | | | | - Add a script to copy the icons from the original source. - Update layout used for the navigation bar to be closer to the original layout. - Update test image with the latest rendering. - Add a nexus 5 landscape device config to help with testing. Change-Id: I0b6674955e0970a6a8cce148b1b7aa61e1752ccd
* | Add missing delegates for M preview.Deepanshu Gupta2015-05-131-0/+0
|/ | | | | | | | | | | | | - Remove ICU dependency (use the version bundled with platform). - Restructure intelliJ project to move dependencies to module. - Minor fixes to layoutlib tests. TODO: - Load ICU data. - Hyphenator doesn't work. - High quality line breaker not present. Change-Id: I965e096e17bfc97ee995a649c3f4f6f64bb4f70d
* More layoutlib tests.Deepanshu Gupta2015-04-161-0/+0
| | | | | | | | | | | | - Add another layout including more widgets and thus testing layoutlib better. - Update targetSdk Version to 22. - Handling of dynamic ids (@+id/) in LayoutLibTestCallback is buggy. Since this is not a problem in Studio, and this is not testing the callback, work around the issue by declaring the ids in values/ids.xml. Change-Id: I457c105e8556c4df13cd86da2250fe5fd37843a8
* Update golden image for tests.Deepanshu Gupta2015-04-151-0/+0
| | | | Change-Id: If07edcbfb7016a6b80f4bd00cffab494f74bfc03
* Fix layoutlib tests.Deepanshu Gupta2015-03-171-0/+0
| | | | | | | | | | | | | The date picker and calendar widgets show the current date. Comparing widgets showing current date with a static golden image wasn't the best idea. - Change the widgets to custom widgets that set a predefined date/time so that the rendering is independent of the system date. - Change the layout slightly to make it look nicer. - Update gradle plugin version. Change-Id: Ia3fb4965a372a28087a0d8c9df40fd6779df6050
* Add image comparison to LayoutLib tests.Deepanshu Gupta2015-01-051-0/+0
The LayoutLib rendering tests now compares the rendered image with a golden file from a previous execution. This will help catch any unexpected changes in the final rendering. Change-Id: I80251a778e89df7d7ec13863a8f299967f3d747d