imakerplugin/com.nokia.s60tools.imaker.tests/src/com/nokia/s60tools/imaker/internal/impmodel/tests/ImpResourceLoadTests.java
equal
deleted
inserted
replaced
131 |
131 |
132 public void testLoadingOverrideConfs() throws Exception { |
132 public void testLoadingOverrideConfs() throws Exception { |
133 String content = "#comment1\nvar1 = foo\n" + |
133 String content = "#comment1\nvar1 = foo\n" + |
134 "define IMAGE_ORIDECONF\n" + |
134 "define IMAGE_ORIDECONF\n" + |
135 "\tekern.exe udeb core\n" + |
135 "\tekern.exe udeb core\n" + |
136 "\tAbout.r01 hie rofs2\n" + |
136 "\tAbout.r01 hide rofs2\n" + |
137 "endef"; |
137 "endef"; |
138 |
138 |
139 populateTestFile(content); |
139 populateTestFile(content); |
140 ImpDocument doc = (ImpDocument) loadContents(); |
140 ImpDocument doc = (ImpDocument) loadContents(); |
141 assertTrue("Not desired amount of override confs found!",doc.getOrideConfs().size()==1); |
141 assertTrue("Not desired amount of override confs found!",doc.getOrideConfs().size()==1); |
156 "\tsource2 About.r01\n" + |
156 "\tsource2 About.r01\n" + |
157 "endef\n" + |
157 "endef\n" + |
158 "#trace configurations\n" + |
158 "#trace configurations\n" + |
159 "define IMAGE_ORIDECONF\n" + |
159 "define IMAGE_ORIDECONF\n" + |
160 "\tekern.exe udeb core\n" + |
160 "\tekern.exe udeb core\n" + |
161 "\tAbout.r01 hie rofs2\n" + |
161 "\tAbout.r01 hide rofs2\n" + |
162 "endef"; |
162 "endef"; |
163 |
163 |
164 populateTestFile(content); |
164 populateTestFile(content); |
165 |
165 |
166 ImpDocument doc = (ImpDocument) loadContents(); |
166 ImpDocument doc = (ImpDocument) loadContents(); |
194 "\ttarget2 source2\n" + |
194 "\ttarget2 source2\n" + |
195 "endef\n" + |
195 "endef\n" + |
196 "#trace configurations\n" + |
196 "#trace configurations\n" + |
197 "define IMAGE_ORIDECONF\n" + |
197 "define IMAGE_ORIDECONF\n" + |
198 "\tekern.exe udeb core\n" + |
198 "\tekern.exe udeb core\n" + |
199 "\tAbout.r01 hie rofs2\n" + |
199 "\tAbout.r01 hide rofs2\n" + |
200 "endef"; |
200 "endef"; |
201 |
201 |
202 populateTestFile(content); |
202 populateTestFile(content); |
203 ImpDocument doc = (ImpDocument) loadContents(); |
203 ImpDocument doc = (ImpDocument) loadContents(); |
204 assertEquals(1, doc.getComments().get(0).getLineNumber()); |
204 assertEquals(1, doc.getComments().get(0).getLineNumber()); |