annotate iframe-resizer/test/resources/testLib.js @ 7:ce8de297bc8b draft

Uploaded
author saskia-hiltemann
date Mon, 16 Nov 2015 10:08:53 -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 }