Fix JS style in test HTMLs
This commit is contained in:
		
					parent
					
						
							
								3c5179b717
							
						
					
				
			
			
				commit
				
					
						da97150fc9
					
				
			
		
					 4 changed files with 17 additions and 17 deletions
				
			
		
							
								
								
									
										10
									
								
								spec/fixtures/api/native-window-open-blank.html
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										10
									
								
								spec/fixtures/api/native-window-open-blank.html
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -1,11 +1,11 @@
 | 
			
		|||
<html>
 | 
			
		||||
<body>
 | 
			
		||||
<script type="text/javascript" charset="utf-8">
 | 
			
		||||
  const {ipcRenderer} = require("electron");
 | 
			
		||||
  const popup = window.open();
 | 
			
		||||
  popup.document.write('<h1>Hello</h1>');
 | 
			
		||||
  const content = popup.document.querySelector('h1').innerText;
 | 
			
		||||
  ipcRenderer.send('answer', content);
 | 
			
		||||
  const {ipcRenderer} = require('electron')
 | 
			
		||||
  const popup = window.open()
 | 
			
		||||
  popup.document.write('<h1>Hello</h1>')
 | 
			
		||||
  const content = popup.document.querySelector('h1').innerText
 | 
			
		||||
  ipcRenderer.send('answer', content)
 | 
			
		||||
</script>
 | 
			
		||||
</body>
 | 
			
		||||
</html>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										10
									
								
								spec/fixtures/api/native-window-open-file.html
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										10
									
								
								spec/fixtures/api/native-window-open-file.html
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -1,12 +1,12 @@
 | 
			
		|||
<html>
 | 
			
		||||
<body>
 | 
			
		||||
<script type="text/javascript" charset="utf-8">
 | 
			
		||||
  const {ipcRenderer} = require("electron");
 | 
			
		||||
  const popup = window.open('native-window-open-child.html');
 | 
			
		||||
  const {ipcRenderer} = require('electron')
 | 
			
		||||
  const popup = window.open('native-window-open-child.html')
 | 
			
		||||
  popup.onload = () => {
 | 
			
		||||
    const content = popup.document.querySelector('h1').innerText;
 | 
			
		||||
    ipcRenderer.send('answer', content);
 | 
			
		||||
  };
 | 
			
		||||
    const content = popup.document.querySelector('h1').innerText
 | 
			
		||||
    ipcRenderer.send('answer', content)
 | 
			
		||||
  }
 | 
			
		||||
</script>
 | 
			
		||||
</body>
 | 
			
		||||
</html>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,10 +1,10 @@
 | 
			
		|||
<html>
 | 
			
		||||
<body>
 | 
			
		||||
<script type="text/javascript" charset="utf-8">
 | 
			
		||||
  const popup = window.open();
 | 
			
		||||
  popup.document.write('<h1>Hello</h1>');
 | 
			
		||||
  const content = popup.document.querySelector('h1').innerText;
 | 
			
		||||
  window.postMessage(content, '*');
 | 
			
		||||
  const popup = window.open()
 | 
			
		||||
  popup.document.write('<h1>Hello</h1>')
 | 
			
		||||
  const content = popup.document.querySelector('h1').innerText
 | 
			
		||||
  window.postMessage(content, '*')
 | 
			
		||||
</script>
 | 
			
		||||
</body>
 | 
			
		||||
</html>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,9 +1,9 @@
 | 
			
		|||
<html>
 | 
			
		||||
<body>
 | 
			
		||||
<script type="text/javascript" charset="utf-8">
 | 
			
		||||
  const {ipcRenderer} = require("electron");
 | 
			
		||||
  const runas = require('runas');
 | 
			
		||||
  ipcRenderer.send('answer', typeof runas);
 | 
			
		||||
  const {ipcRenderer} = require('electron')
 | 
			
		||||
  const runas = require('runas')
 | 
			
		||||
  ipcRenderer.send('answer', typeof runas)
 | 
			
		||||
</script>
 | 
			
		||||
</body>
 | 
			
		||||
</html>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue