annotate iframe-resizer/test/resources/testLib.js @ 4:363cd315d0e9 draft

Uploaded
author saskia-hiltemann
date Mon, 16 Nov 2015 09:46:51 -0500
parents 3c160414da2e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
3c160414da2e initial upload
shiltemann
parents:
diff changeset
1 function sendMessage(msg){
3c160414da2e initial upload
shiltemann
parents:
diff changeset
2 'use strict';
3c160414da2e initial upload
shiltemann
parents:
diff changeset
3 var msgId = '[iFrameSizerTest]:';
3c160414da2e initial upload
shiltemann
parents:
diff changeset
4
3c160414da2e initial upload
shiltemann
parents:
diff changeset
5 document.getElementsByTagName('iframe')[0].contentWindow.postMessage( msgId + msg, '*' );
3c160414da2e initial upload
shiltemann
parents:
diff changeset
6 }