Generic loading panel
This commit is contained in:
		
							parent
							
								
									27a432b461
								
							
						
					
					
						commit
						4776bb869c
					
				
					 3 changed files with 24 additions and 4 deletions
				
			
		
							
								
								
									
										4
									
								
								app/pods/components/loading-panel/template.hbs
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								app/pods/components/loading-panel/template.hbs
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,4 @@
 | 
			
		|||
<div class="spinner">
 | 
			
		||||
  <div class="double-bounce1"></div>
 | 
			
		||||
  <div class="double-bounce2"></div>
 | 
			
		||||
</div>
 | 
			
		||||
| 
						 | 
				
			
			@ -1,4 +1 @@
 | 
			
		|||
<div class="spinner">
 | 
			
		||||
  <div class="double-bounce1"></div>
 | 
			
		||||
  <div class="double-bounce2"></div>
 | 
			
		||||
</div>
 | 
			
		||||
{{loading-panel}}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										19
									
								
								tests/unit/pods/components/loading-panel/component-test.js
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								tests/unit/pods/components/loading-panel/component-test.js
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,19 @@
 | 
			
		|||
import { moduleForComponent, test } from 'ember-qunit';
 | 
			
		||||
 | 
			
		||||
moduleForComponent('loading-panel', 'Unit | Component | loading panel', {
 | 
			
		||||
  // Specify the other units that are required for this test
 | 
			
		||||
  // needs: ['component:foo', 'helper:bar'],
 | 
			
		||||
  unit: true
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
test('it renders', function(assert) {
 | 
			
		||||
  assert.expect(2);
 | 
			
		||||
 | 
			
		||||
  // Creates the component instance
 | 
			
		||||
  var component = this.subject();
 | 
			
		||||
  assert.equal(component._state, 'preRender');
 | 
			
		||||
 | 
			
		||||
  // Renders the component to the page
 | 
			
		||||
  this.render();
 | 
			
		||||
  assert.equal(component._state, 'inDOM');
 | 
			
		||||
});
 | 
			
		||||
		Reference in a new issue